python profiling for a XML parser program

Diez B. Roggisch deets at nospam.web.de
Sat Sep 19 21:56:40 CEST 2009


MacRules schrieb:
> 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 dealmaker.py
> ... read data
> loop through records
> ... XML parsing
> ... write to file1.dat
> ... write to file2.date
> done
> 
> 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?

Google dead today?

http://www.google.com/search?q=python+profiler&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:de-DE:official&client=firefox-a

First hit. It's build-in already.

Diez



More information about the Python-list mailing list