mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:49:00 +08:00
Add commands per second to output
Contributes to issue CURA-5561.
This commit is contained in:
parent
bec643cd79
commit
f5157aeeaf
@ -495,8 +495,12 @@ class CommandBuffer:
|
||||
|
||||
def report(self) -> None:
|
||||
for item in self._bad_frame_ranges:
|
||||
print("!!!!! potential bad frame from line %s to %s, code count = %s, in %s s" % (
|
||||
item["start_line"], item["end_line"], item["cmd_count"], round(item["time"], 4)))
|
||||
print("Potential buffer underrun from line {start_line} to {end_line}, code count = {code_count}, in {time}s ({speed} cmd/s)".format(
|
||||
start_line = item["start_line"],
|
||||
end_line = item["end_line"],
|
||||
code_count = item["cmd_count"],
|
||||
time = round(item["time"], 4),
|
||||
speed = round(item["cmd_count"] / item["time"], 2)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
x
Reference in New Issue
Block a user