Is there a Python profiler that preserves function arguments?

2020-03-11 Thread Go Luhng
g on. Is there a way to get `cProfile`, or any other Python profiler, to preserve function call arguments, so when I look at the call stack later (especially using a visualizer like SnakeViz) I can distinguish between `foo('bar')` and `foo('qux')`? P.S. arguably this is a

Re: Python profiler usage with objects

2010-06-30 Thread rik
Ben Kaplan case.edu> writes: > There's nothing special about profile.run- you have to hand it something to > execute, not something already executed. Try calling > Profile.run(doSomething) # no parenthesis for doSomething. your hint and REREADING THE DOCUMENTATION made me realize it was the QUO

Re: Python profiler usage with objects

2010-06-30 Thread Rami Chowdhury
On 2010-06-30 06:39, rik wrote: > Ben Kaplan case.edu> writes: > > > > > Let's take this code as an example: > > > > def foo() : > > return None > > > > import profile > > profile.run(foo()) > > > > What does the profile.run call do? > > > > First thin it does is evaluate foo(), which r

Re: Python profiler usage with objects

2010-06-30 Thread rik
Ben Kaplan case.edu> writes: > First thin it does is evaluate foo(), which returns None. So you're calling > profile.run(None) > > There's nothing special about profile.run- you have to hand it something to > execute, not something already executed. Try calling > Profile.run(doSomething) # no p

Re: Python profiler usage with objects

2010-06-29 Thread rik
Ben Kaplan case.edu> writes: > > Let's take this code as an example: > > def foo() : > return None > > import profile > profile.run(foo()) > > What does the profile.run call do? > > First thin it does is evaluate foo(), which returns None. So you're calling > profile.run(None) > > Ther

RE: Python profiler usage with objects

2010-06-29 Thread Ben Kaplan
> -Original Message- > From: python-list-bounces+bsk16=case@python.org [mailto:python-list- > bounces+bsk16=case@python.org] On Behalf Of rik > Sent: Tuesday, June 29, 2010 10:52 PM > To: python-list@python.org > Subject: Re: Python profiler usage with

Re: Python profiler usage with objects

2010-06-29 Thread rik
harit gmail.com> writes: > > Hi, > > I have a specific question regarding the usage of profiler. I am new > to python programming I am trying to profile a function which I want > to invoke as a class method, something like this > > import profile > > class Class: > > def doSomething(): > >

Python profiler usage with objects

2010-06-29 Thread harit
Hi, I have a specific question regarding the usage of profiler. I am new to python programming I am trying to profile a function which I want to invoke as a class method, something like this import profile class Class: def doSomething(): do here .. def callMethod(): **self.doSomethin

ANN: yappi 0.1 beta : Yet Another Python Profiler

2009-10-11 Thread Sümer Cip
Hi all, After implementing a game server on which 100k people playing games per-day, it turns out to be that continuous and efficient profiling is key to improve an long-running applications like these. With this idea in mind, I am motivated to write a profiler. I am not a Python expert or even cl

ANN: yappi 0.1 beta : Yet Another Python Profiler

2009-10-10 Thread k3xji
Hi all, After implementing a game server on which 100k people playing games per-day, it turns out to be that continuous and efficient profiling is key to improve an long-running applications like these. With this idea in mind, I am motivated to write a profiler. I am not a Python expert or even cl

Re: Python Profiler GUI like Matlab?

2007-12-06 Thread sturlamolden
On 7 Des, 02:58, Davy <[EMAIL PROTECTED]> wrote: > Is there any Python Profiler GUI like Matlab? I found the Matlab > Profiler is very intuitive and easy to use. There is a Python profiler. But is does not have a GUI. -- http://mail.python.org/mailman/listinfo/python-list

Python Profiler GUI like Matlab?

2007-12-06 Thread Davy
Hi all, Is there any Python Profiler GUI like Matlab? I found the Matlab Profiler is very intuitive and easy to use. Best regards, Davy -- http://mail.python.org/mailman/listinfo/python-list

Python profiler and decorators

2006-06-23 Thread warspir
HiI was wondering about this while working on profiling my program using the profile module.Say we have the following:@decdef func: blah blah blahWhen profiling the whole program, what would the total time for func represent? The time spent just in the original function or the time spent spent

Interpreting python profiler results

2006-03-07 Thread Will Ware
I'm working on a piece of software that uses PyQt and PyOpenGL for drawing acceleration. While profiling it to find opportunities to speed things up, I got this from the profiler: ncalls tottime percall cumtime percall filename:lineno(function) 12108/12084 55.3900.005 55.3900.00

Re: Python profiler

2005-10-04 Thread Peter Tillotson
look in the gc module ... Celine & Dave wrote: > Hello All, > > I am trying to find a profiler that can measure the > memory usage in a Python program. I would like to > gather some statistics about object usages. For > example, I would like to be able to see how much time > it takes to search fo

Python profiler

2005-10-03 Thread Celine & Dave
retrieve a specific item, and things like that. Furthermore, I would like to be able to see how a symbol table is created, how many items it has, how many times it is accessed during execution, etc. Python profiler gives timing information about functions/methods. For example, it doesn't show how

Re: Python profiler

2005-09-30 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Celine & Dave <[EMAIL PROTECTED]> writes >I am trying to find a profiler that can measure the >memory usage in a Python program. >I would like to >gather some statistics about object usages. For Python Memory Validator. Apply for beta here: http://www.softw

Python profiler

2005-09-30 Thread Celine & Dave
Hello All, I am trying to find a profiler that can measure the memory usage in a Python program. I would like to gather some statistics about object usages. For example, I would like to be able to see how much time it takes to search for an item in a dict object, how many times it has to access th