%include('header', category='Tracker', title='Tracked objects') %from pympler.util.stringutils import pp, pp_timestamp %from json import dumps

Tracked objects

%if snapshots:

Memory distribution over time

Snapshots statistics

%for sn in snapshots:

{{sn.desc or 'Untitled'}} snapshot at {{pp_timestamp(sn.timestamp)}}

%cnames = list(sn.classes.keys()) %cnames.sort() %for cn in cnames: %data = sn.classes[cn] %end
Class Instance # Total Average size Share
{{cn}} {{data['active']}} {{pp(data['sum'])}} {{pp(data['avg'])}} {{'%3.2f%%' % data['pct']}}
%if sn.system_total.available:

Process memory

%for key, value in sn.system_total.os_specific: %end
Type Size
Virtual memory size {{pp(sn.system_total.vsz)}}
Resident set size {{pp(sn.system_total.rss)}}
Pagefaults {{sn.system_total.pagefaults}}
{{key}} {{value}}
%end %end %else:

No objects are currently tracked. Consult the Pympler documentation for instructions of how to use the classtracker module.

%end %include('footer')