nv2a-trace
nv2a-trace copied to clipboard
Division by zero when `duration` is 0
The following line can trigger a division by zero:
print("Recorded %d flip stalls and %d PB commands (%.2f commands / second)" % (flipStallCount, commandCount, commandCount / duration))
This will likely happen if hooking into the PB failed and the timer resolution is too low.