Profiling stuff like urlopen and connection.execute()
Alex Polite
m2 at plusseven.com
Sun Jun 16 07:29:47 EDT 2002
In my little webspider project I've just realized something about the
python profiler. It counts only CPU seconds not "wall clock"-seconds.
So profiling database queries or urlopens is kind of pointless. One
could measure the time manually on every urlopen and conn._execute()
(which is what I did to find out that the db was the bottleneck and
not the DSL pipe), but for larger projects this is tiresome.
Is there anyway to do something about this?
--
Alex Polite
http://plusseven.com/gpg/
More information about the Python-list
mailing list