Memory profiling extension for zeitgeist
========================================

Author
######
    Markus Korn <thekorn@gmx.de>

Installation
############
    1.) get latest http://code.google.com/p/pympler/ and install it
    2.) copy profile_memory.py to ~/.local/share/zeitgeist/extensions/
    3.) restart the daemon
    
In order to get memory usage of the remote interface, make sure to run the
patched daemon from lp:~thekorn/zeitgeist/memory-profile

If you don't want to install pympler globally you can try to run
zeitgeist-daemon in a virtualenv

    1.) mkdir zeitgeist
    2.) virtualenv /tmp/memory-test
    3.) . /tmp/memory-test/bin/activate
    4.) cd zeitgeist
    5.) svn checkout http://pympler.googlecode.com/svn/trunk/ pympler
    5a.) cd pympler
    5b.) python setup.py build
    5c.) python setup.py install
    5d.) cd ..
       
    6.) bzr branch lp:~thekorn/zeitgeist/memory-profile
    6a.) cd memory-profile
    6b.) ./autogen.sh
    6c.) make
    
    7.) ./zeitgeist-daemon
    
Get summary of memory usage
###########################
    dbus-send --print-reply --dest=org.gnome.zeitgeist.Engine \
     /org/gnome/zeitgeist/memory_profiler org.gnome.zeitgeist.Log.MakeSnapShot


TODO
####
    * discuss if it makes sense to have access to the RemoteInterface
      instance from extensions
    * try to find a way to profile the sqlite3 connection
