Open main menu

Gramps β

Changes

GEPS 016: Enhancing Gramps Processing Speed

506 bytes added, 15:37, 27 October 2014
m
Profiling
To interpret the stats, you must realize that the function calls reflect a hierarchical structure. This src/gramps.py uses the most time as it is the topmost program. So, you may have to go down quite a ways to see the lower-level functions that are actually responsible for the processing. For example, '''/home/dblank/gramps/trunk/src/gen/db/write.py:1349(commit_base)''' may be a function that could be speed up.
 
====Additionnal tips====
 
python
>>> import hotshot, hotshot.stats, test.pystone
>>> stats = hotshot.stats.load('profile-log')
>>> stats.strip_dirs()
>>> stats.sort_stats('time', 'calls')
>>> stats.print_stats(200)
>>> stats.sort_stats('cumulative', 'calls')
>>> stats.print_stats(200)
>>> stats.sort_stats('calls')
>>> stats.print_stats(200)
>>> stats.sort_stats('ncalls', 'calls')
>>> stats.print_stats(200)
>>> stats.sort_stats('pcalls', 'calls')
>>> stats.print_stats(200)
 
=== Profile GUI ===