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
While analyzing a package I wrote myself using --profile-all, I noticed that the threading module had significant amount of overhead. (I’m still not very familiar with threads, so please forgive me if my question is naive.)
I wrote a simple loop script and found that as along as I enabled --profile-all, it showed heavy usage under threading.run. That portion of overhead are likely attributed to Python part without using --profile-all.
I'm really confused—does this overhead come from Scalene's profile itself, or is it from my own program (since I use multiprocessing in my package)?
The total runtime is about 4.699 seconds using --profile-all. According to the report, the Python part takes up about 30% of the time (around 1.55 seconds). However, when I run the script by itself (without profiling), it takes about 2 seconds to complete. I am confused about this difference in execution time.
While analyzing a package I wrote myself using
--profile-all
, I noticed that thethreading
module had significant amount of overhead. (I’m still not very familiar with threads, so please forgive me if my question is naive.)I wrote a simple loop script and found that as along as I enabled
--profile-all
, it showed heavy usage underthreading.run
. That portion of overhead are likely attributed to Python part without using--profile-all
.I'm really confused—does this overhead come from Scalene's profile itself, or is it from my own program (since I use multiprocessing in my package)?
The total runtime is about 4.699 seconds using
--profile-all
. According to the report, the Python part takes up about 30% of the time (around 1.55 seconds). However, when I run the script by itself (without profiling), it takes about 2 seconds to complete. I am confused about this difference in execution time.OS: Ubuntu 22.04.5 LTS
Python: Python 3.11.11
Scalene: Scalene version 1.5.51
The text was updated successfully, but these errors were encountered: