Stability and Memory Pressure in 8.2

Tomeu Vizoso tomeu at tomeuvizoso.net
Wed Sep 10 08:51:51 EDT 2008


On Wed, Sep 10, 2008 at 2:37 PM, riccardo <riccardo.lucchese at gmail.com> wrote:
> Paul,
>
> On Wed, 2008-09-10 at 08:18 -0400, pgf at laptop.org wrote:
>> tomeu wrote:
>>  > On Wed, Sep 10, 2008 at 2:05 PM, James Cameron <quozl at laptop.org> wrote:
>>  >
>>  > > Has anyone got an idea of how to measure the heap by usage?
>>  >
>>  > Not from outside python, but from inside we are using heapy:
>>  >
>>  > http://guppy-pe.sourceforge.net/
>>
>> i started down that path yesterday afternoon, and realized that it
>> wasn't clear to me how i needed to invoke it.  it seems to want
>> to be imported before you start the rest of your program, which
>> sort of forces you into interactive mode.  is that your understanding?
>> i had been hoping to be able to "attach" to the sugar shell process,
>> in the way one might do with gdb.  perhaps that's not possible.
>>
>
> There is kick-start tutorial on how to use heapy's remote monitor at the
> 56th page of http://guppy-pe.sourceforge.net/heapy-thesis.pdf
>
> For the shell I use to put `import guppy.heapy.RM' before any other
> import statement in main.py.

Another pointer:

http://guppy-pe.sourceforge.net/heapy_Use.html#heapykinds.Use.monitor

Other ways of using guppy are logging out periodically the heap with
gobject.timeout_add or patching keyhandler.py to print the heap (or a
diff of it) when a key combination is pressed.

Regards,

Tomeu



More information about the Devel mailing list