Re: Profiler for long-running application

2015-02-09 Thread Asad Dhamani
On Monday, February 9, 2015 at 1:50:58 PM UTC+5:30, Ryan Stuart wrote: > Hi Asad, > > Is there any reason why you can't just use profile/cProfile? In particular, > you could use the api of that module to save out the profile stats to an > external file with a unique name and then inspect them la

Re: Profiler for long-running application

2015-02-09 Thread Ryan Stuart
Hi Asad, Is there any reason why you can't just use profile/cProfile? In particular, you could use the api of that module to save out the profile stats to an external file with a unique name and then inspect them later with a tool like snakeviz . The code to

Re: Profiler for long-running application

2015-02-08 Thread dieter
Asad Dhamani writes: > I'd like to find out where the bottleneck is, and I've been looking for a > good profiler that'd let me do this, however, I couldn't find anything. Any > recommendations would be great. Python comes with a "profile" module in its standard library. Implemented in Python a

Profiler for long-running application

2015-02-08 Thread Asad Dhamani
I have a Flask application where I run a specific task asynchronously using Celery. Its basically parsing some HTML and inserting data into a Postgres database(using SQLAlchemy). However, the task seems to be running very slowly, at 1 insert per second. I'd like to find out where the bottleneck