There was an error while loading. Please reload this page.
To analyze pycsw performance, the following approach can be used:
csw.py
from server import server import cProfile def foo(): # get runtime configuration CSW = server.Csw('./default.cfg') # go! CSW.dispatch() cProfile.run('foo()', '/tmp/pycsw.prof')
This will output the profiling report to /tmp/pycsw.prof.
/tmp/pycsw.prof
gprof2dot -f pstats /tmp/pycsw.prof |dot -Tpng -o /tmp/pycsw-prof.png
This will output a PNG graph of the entire process, which can help identify bottlenecks in a given process.