Changes between Version 4 and Version 5 of Development/Profiling


Ignore:
Timestamp:
02/08/2013 03:28:00 PM (11 years ago)
Author:
bro
Comment:

Added section on profiling the daemon.

Legend:

Unmodified
Added
Removed
Modified
  • Development/Profiling

    v4 v5  
    170170We can now see how update_view has dropped significantly on the list. Each call to update_view now takes 0.37 seconds on average compared to 1.18 in the original code. 
    171171 
     172== Profiling Deluge daemon with == 
     173 
     174The daemon can be profiled using the command line option --profile.  
     175{{{ 
     176deluged --profile 
     177}}} 
     178Deluge 1.3.X uses [http://docs.python.org/2/library/hotshot.html hotshot]. You can convert hotshot profiling data to [http://kcachegrind.sourceforge.net/html/Home.html KCachegrind] calltree format using hotshot2calltree: 
     179{{{ 
     180hotshot2calltree -o deluged_calltree.profile deluged.profile 
     181}}} 
     182git-master uses cProfile so the output can be opened directly by [http://www.vrplumber.com/programming/runsnakerun RunSnakeRun]. To open this in KCachegrind (-k option opens the result in KCachegrind automatically): 
     183{{{ 
     184pyprof2calltree -i deluged.profile -k 
     185}}} 
    172186 
    173187== Profiling memory usage on the Deluge daemon with valgrind (massif) ==