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
It spawns new processes because it needs to parse externally-hosted data, sometimes substantial quantities of it, using native libraries, so there are both security and performance reasons.
It would be kind of nice if we could enable a flag inside of our app which would turn on automatic scalene profiling of tasks and dump the results in a unique temporary directory. Each task would then have its own separate profile which we could look at. The problem is that we don't want to be running our entire app under scalene all the time in production.
Is it completely not-possible to enable scalene purely from within the code at runtime, without running the code itself using scalene? The docs give the impression that:
from scalene import scalene_profiler
# Turn profiling on
scalene_profiler.start()
# Turn profiling off
scalene_profiler.stop()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have a task running engine inside our code which spawns new processes like so:
It spawns new processes because it needs to parse externally-hosted data, sometimes substantial quantities of it, using native libraries, so there are both security and performance reasons.
It would be kind of nice if we could enable a flag inside of our app which would turn on automatic scalene profiling of tasks and dump the results in a unique temporary directory. Each task would then have its own separate profile which we could look at. The problem is that we don't want to be running our entire app under scalene all the time in production.
Is it completely not-possible to enable scalene purely from within the code at runtime, without running the code itself using
scalene
? The docs give the impression that:still requires running the code using
scalene
.Beta Was this translation helpful? Give feedback.
All reactions