On Wed, Jan 21, 2009 at 15:13, Neal Becker <[email protected]> wrote: > Would be handy to not have to add/remove @profile to switch between > profiling/normal operation. > > When run without profiler, @profile is redefined to do nothing. Possible?
I could add a --noop flag to kernprof, which basically tells it to insert a do-nothing profile() decorator. I'm not sure what the use case is, though. Are you switching back and forth frequently? -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
