Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I get %prun format result from line_profiler? #217

Open
PaleNeutron opened this issue Jun 27, 2023 · 0 comments
Open

Can I get %prun format result from line_profiler? #217

PaleNeutron opened this issue Jun 27, 2023 · 0 comments

Comments

@PaleNeutron
Copy link

I want to profile a function contains multiprocess and if I use %prun I can only see something like

   Ordered by: internal time

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
     1109   10.339    0.009   10.339    0.009 {method 'acquire' of '_thread.lock' objects}

Functions inside child process will not be profiled.

line_profiler can get into process but I can only view result for one function line by line so I have to step into hot function using -f time and time.

Can I get %prun style result which counting all function called inside one function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant