<div class="gmail_extra">On Sat, Dec 8, 2012 at 4:17 PM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
   I was thinking of just marking the first memory allocation for each object, like the PetscNew(struct tp,&(h) with a bool (another record in TRSPACE), then -malloc_dump_objects would be just like -malloc_dump except only dump memory with that mark and hence one dump for each object. Nothing fancy but get's the job done.   Could have PetscNewMark() used for this purpose.</blockquote>
</div><br></div><div class="gmail_extra">So just mark it with a Bool rather than the classid. That's fine, but the extensible malloc interfaces need to be extended to support the extra routine.</div>