can profile be called from class method?

Dave Brennan (brennan@hal.com)
12 Sep 1994 23:46:10 GMT

I'm having some trouble calling the profiler from a class method.
I want to do something like:

profile.run (self.method())

For the right context, it looks like I really need to use profile.runctx,
but I don't know how to get the dictionary of locals for the 3rd argument.

Can anyone set me straight on how to do this?

-- 
Dave Brennan                         HaL Computer Systems, Austin, TX, USA
brennan@hal.com                      http://www.hal.com/~brennan