[BangPypers] log and figure out what bits are slow and optimize them.
Noufal Ibrahim
noufal at nibrahim.net.in
Fri Feb 10 14:54:31 CET 2012
Saju M <sajuptpm at gmail.com> writes:
> 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.
You should do this in development to identify pain points. The results
might be interesting.
> 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 ??
Yes. You can't do that.
One option is to use something like graphite to capture statistics that
your app emits. It should be able to give you a graph of various
parameters at various times.
[...]
--
~noufal
http://nibrahim.net.in
If Roosevelt were alive, he'd turn over in his grave. -Samuel Goldwyn
More information about the BangPypers
mailing list