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
I just watched the PyCon talk and was super thrilled about the potential for scalene. I would like to integrate scalene into some CICD pipelines for some python projects but I'm actually not sure how to do it. I think the method depends on the type of python program.
Programs
CLI - I think you could just run a couple commands? but I think running each command would create a separate report? Not sure if thats a problem or not.
service - some kinda long running daemon type thing. Like a webserver. Could probably just run it and do some work and then stop scalene.
library - This is the one I struggle with the most since most libraries don't have a single entry point.
My first thought was it might be easy to do this when doing testing. So scalene pytest but I'm guessing that wont work and if it did would it would probably also be profiling pytest's internal code as well? I havent actually installed scalene to try any of these things so maybe I'm missing something simple.
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
-
I just watched the PyCon talk and was super thrilled about the potential for scalene. I would like to integrate scalene into some CICD pipelines for some python projects but I'm actually not sure how to do it. I think the method depends on the type of python program.
Programs
My first thought was it might be easy to do this when doing testing. So
scalene pytest
but I'm guessing that wont work and if it did would it would probably also be profiling pytest's internal code as well? I havent actually installed scalene to try any of these things so maybe I'm missing something simple.Beta Was this translation helpful? Give feedback.
All reactions