python profiling for a XML parser program

MacRules MacRules at
Sat Sep 19 21:19:05 CEST 2009

I have a python program doing XML data prasing and write the result to 2 
data files; which will be loaded to MySQL.

I ran this.

$ python
... read data
loop through records
... XML parsing
... write to file1.dat
... write to

Is there a python profiler just like for C program?
And tell me which functions or modules take a long time.

Can you show me URL or link on doing this task?


More information about the Python-list mailing list