Thank you. Trying to get this to work:
def run(self, edit, numbers):
cProfile.run("self.real_run(edit, numbers)", locals(), globals())
But receive error "TypeError: coercing to Unicode: need string or buffer, dict found". How can I pass edit (if necessary) and my "numbers" == true/false argument to the .run call please?