log and figure out what bits are slow and optimize them.
Kev Dwyer
kevin.p.dwyer at gmail.com
Fri Feb 10 17:37:18 EST 2012
sajuptpm wrote:
> Hi,
>
> Yes i saw profile module,
> I think i have to do function call via
>
> cProfile.run('foo()')
>
> I know, we can debug this way.
>
> But, i need a fixed logging system and want to use it in production.
> I think, we can't permanently include profile's debugging code
> in source code,
> will cause any performance issue ??
*Any* instrumentation code is going to affect performance.
It's a trade-off that you need to analyse and manage in the context of your
application.
More information about the Python-list
mailing list