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 have a project need multiprocessing and would take over 4 hour in a 36cores vps .
My local machine is windows, has some problem to run mprof .
So I run vprof -c cmh "run.py salecount -n 1" --output-file profile.json on a remote vps .
Because vprof didn't support multiprocessing , I can't wait it done .
Abort from execution, it didn't export any files .
What is the correct way in my case ??
The text was updated successfully, but these errors were encountered:
eromoe
changed the title
How to profile long running application , I don' t want to wait .
How to profile long running application ,I don' t want to wait .
Jun 25, 2019
eromoe
changed the title
How to profile long running application ,I don' t want to wait .
How to profile long running application ?
Jun 25, 2019
You don't need to run your full application. Comment out code and tweak the main loop so it runs the program directly instead of multiprocessing, and runs on say a quarter of the data you're using. You're looking for the functions taking high proportions of time, not the exact full runtime.
Hello,
I have a project need multiprocessing and would take over 4 hour in a 36cores vps .
My local machine is windows, has some problem to run mprof .
So I run
vprof -c cmh "run.py salecount -n 1" --output-file profile.json
on a remote vps .Because vprof didn't support multiprocessing , I can't wait it done .
Abort from execution, it didn't export any files .
What is the correct way in my case ??
The text was updated successfully, but these errors were encountered: