google / UIforETW

User interface for recording and managing ETW traces
https://randomascii.wordpress.com/2015/04/14/uiforetw-windows-performance-made-easier/
Apache License 2.0
1.55k stars 201 forks source link

LabScripts GeneralTracing UnboundLocalError in SummarizeData.py #101

Closed CalebRouleau closed 7 years ago

CalebRouleau commented 7 years ago

Traceback (most recent call last):\r\r\n File "SummarizeData.py", line 123, in \r\r\n sys.exit(main())\r\r\n File "SummarizeData.py", line 113, in main\r\r\n [\'dwm.exe\', \'csrss.exe\'], \'GPU usage\', \'ms\', results)\r\r\n File "SummarizeData.py", line 102, in Summarize\r\r\n \'value\' : other_process})\r\r\nUnboundLocalError: local variable \'other_process\' referenced before assignment\r\r\n

I have a fix that I will send soon

randomascii commented 7 years ago

Weird. It looks like that should only happen if there are no other processes that use CPU time, which seems like some sort of fantastical crazy land. I wonder if that is actually what happened or if something in the trace processing broke.

Either way, not crashing would be good.