Skip to main content
1 vote
0 answers
143 views

I am trying to profile the nerfstudio implementation of the method nerfacto. I used cprofile while the running the scripts and then used the .pstats file generated by Cprofile to visualize the results ...
Youssef Haddouda's user avatar
0 votes
2 answers
186 views

When I run my script from the IDE I don't get a problem. But when I run it using python -m cProfile <script_file_name> it raises a FileNotFoundError? import pandas as pd x = pd.read_excel(<...
Ell's user avatar
  • 29
2 votes
0 answers
479 views

So i'm using cProfile and snakeviz to profil my code. My code has decorator which seems to make the cProfile results not very correct : my code : import time import decorator @decorator.decorator def ...
A.Vignon's user avatar
  • 375
0 votes
0 answers
960 views

I am running cProfile on my python script in order to see where i can improve performance and using snakeviz to visualize. The results are pretty vague however; how do I interpret them? Here are the ...
beginner_python's user avatar
1 vote
1 answer
3k views

So you want to know why your Python script is running slow? There is an easy way to do this using cProfile and pstats, which count the number of calls to each function. We can visualize the results ...
Matthew Reid's user avatar
3 votes
2 answers
8k views

When I ran $ snakeviz code_profile.prof from CLI : snakeviz web server started on 127.0.0.1:8080; enter Ctrl-C to exit http://127.0.0.1:8080/snakeviz/%2Fhome%2Fatmadeep%2FProjects%2FtrafficAI-master%...
user avatar
4 votes
1 answer
2k views

I'm using numpy v1.18.2 in some simulations, and using inbuilt functions such as np.unique, np.diff and np.interp. I'm using these functions on standard objects, i.e lists or numpy arrays. When I ...
Rithwik's user avatar
  • 1,208
1 vote
1 answer
1k views

I've installed snakeviz into venv. Now I'm able to load extension into jupyter notebook via %load_ext snakeviz. When I run it as magic in the beginning of the cell: %%snakeviz -t it prints *** ...
Xronx's user avatar
  • 1,220
5 votes
1 answer
680 views

I am using Flask for my Web Api service. Finding that my services sometimes (1/100 requests) respond really slow (seconds), I started debugging, which showed me that sometimes the service hangs on ...
Dmitry Zuev's user avatar
1 vote
0 answers
196 views

I'm using snakeviz/cProfile to view the profile data of a slow running python script. However a lot of the longer running methods are wrapped with decorators and so I don't see the name of the ...
JSharm's user avatar
  • 1,214
9 votes
1 answer
14k views

Hi I know the usage of command line method to profile a python script as given below. python -m cProfile -o program.prof my_program.py However I'm profiling specific piece of code in Python using ...
Muhammad Abdullah's user avatar
0 votes
0 answers
66 views

I am trying to profile a python script I have. I run it like this: $ python -m cProfile -o out.profile script.py It runs well, I get a file called out.profile with profiling information, but I see ...
Pablo Santa Cruz's user avatar