%include('header', category='Tracker', title=clsname) %from pympler.util.stringutils import pp, pp_timestamp

{{clsname}}

%sizes = [tobj.get_max_size() for tobj in stats.index[clsname]]

{{len(stats.index[clsname])}} instances of {{clsname}} were registered. The average size is {{pp(sum(sizes)/len(sizes))}}, the minimal size is {{pp(min(sizes))}}, the maximum size is {{pp(max(sizes))}}.

Coalesced Referents per Snapshot

%for snapshot in stats.snapshots: %if clsname in snapshot.classes: %merged = snapshot.classes[clsname]['merged']

Snapshot: {{snapshot.desc}}

{{pp(merged.size)}} occupied by instances of class {{clsname}}

%if merged.refs: %include('asized_referents', referents=merged.refs) %else:

No per-referent sizes recorded.

%end %end %end

Instances

%for tobj in stats.index[clsname]: %if tobj.repr: %end %if getattr(tobj, 'trace'): %end %for (timestamp, size) in tobj.snapshots: %if not size.refs: %else: %end %end
Instance {{tobj.name}} at {{'0x%08x' % tobj.id}}
Representation {{tobj.repr}} 
Lifetime {{pp_timestamp(tobj.birth)}} - {{pp_timestamp(tobj.death)}}
Instantiation % #
%for frame in tobj.trace:
{{frame[0]}} {{frame[1]}} {{frame[2]}}
{{frame[3][0].strip()}}
%end % #
{{pp_timestamp(timestamp)}}{{pp(size.size)}} {{pp(size.size)}} %include('asized_referents', referents=size.refs)
%end %include('footer')