-
Notifications
You must be signed in to change notification settings - Fork 155
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
import
does not work with memory profiler
#77
Labels
Comments
It happens since profiling agents are run one after another: memory profiler always runs first and in the same process and others do run in their own processes for isolation. These processes are forked after memory profiler imports the code and child processes inherit that and that's why code is not reimported. |
ahuigo
changed the title
Feb 6, 2018
import
do not work with memory profileimport
do not work with memory profiler
ahuigo
changed the title
Feb 6, 2018
import
do not work with memory profilerimport
does not work with memory profiler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
import mod
do not work with memory profile.How to reproduce
mod.py:
print("I'm mod")
main.py:
import mod
Actual results
Expected results
mod.py
should be executed 2 times.Version and platform
vprof 0.37.4
python 3.6.2
Mac OSX
The text was updated successfully, but these errors were encountered: