You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Memory consumption when the code is being profiled with pyinstrument:
$ mprof run test_pyintstruments.py pyinstrument
mprof: Sampling memory every 0.1s
running new process
running as a Python program...
Profiling with pyinstrument
$ mprof plot -o mprofile_with_pyinstrument.png /path/to/profiling/data.dat
Memory consumption when the code is not being profiled:
$ mprof run test_pyintstruments.py
mprof: Sampling memory every 0.1s
running new process
running as a Python program...
Not using pyinstrument
$ mprof plot -o mprofile_without_pyinstrument.png /path/to/profiling/data.dat
What I don't understand is why memory consumption constantly increases when pyinstrument is being used, as the Profiler object is being created and destroyed in each iteration.
The text was updated successfully, but these errors were encountered:
I used the following script to measure memory consumption when code is profiled with pyinstrument and when code is run without being profiled.
Memory consumption when the code is being profiled with pyinstrument:
Memory consumption when the code is not being profiled:
What I don't understand is why memory consumption constantly increases when pyinstrument is being used, as the
Profiler
object is being created and destroyed in each iteration.The text was updated successfully, but these errors were encountered: