benfred / py-spy

Sampling profiler for Python programs
MIT License
12.14k stars 400 forks source link

Add thread name to output when using record subcommand #599

Closed codypiersall closed 11 months ago

codypiersall commented 11 months ago

Whenever the -t option is given, py-spy will now attempt to output thread names as well as thread ID.

codypiersall commented 11 months ago

This is a pretty small change that would help when debugging our multithreaded GUI at work. py-spy already had all the logic to make this a simple change, which I was very grateful for.