scalene
scalene copied to clipboard
Asyncio support
Is Scalene supposed to support asyncio-based applications? I'm trying to profile a complex application using asyncio on macOS 11, Python 3.9.
If the full CPU+memory profiling is enabled, Scalene immediately crashes with a SIGSEGV or a SIGBUS. I added some print statements to my code to see when it crashed, and it seems to do so nondeterministically.
With --cpu-only
, it manages to executes the program, but when I terminate the application with a SIGTERM
(my program catches the signal to perform a clean shutdown), Scalene crashes and it is unable to write the full HTML report.
Is there anything I may try to help debug this issue?
Just for starters, which version of Scalene are you using? (scalene --version
)
I tried 1.3.6 and then the latest master from GitHub.
Great. Any chance you could test it on a Linux platform? That could help isolate the problem.
Just to chime in, I experienced the same issue on macOS (11.4) and using scalene version 1.3.8. Attempting to profile the same code on Linux works.
If you can provide a repro case, it'd be most helpful!
I was attempting to profile this Panel based app on my Mac laptop when I ran into the same SIG* issues.