MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / debugreportsegment

Function debugreportsegment

src/debugmem.cpp:292–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292static void debugreportsegment(struct debugsegtracker *seg, bool verbose)
293{
294 struct debugmemallocs *alloc = allocs[seg->allocid];
295 int parentid = alloc->id;
296 for (int i = 0; i < MAX_DEBUGMEMALLOCS; i++) {
297 struct debugmemallocs *a = allocs[i];
298 if (a->parentid == parentid) {
299 if (verbose) {
300 console_out_f(_T("Segment %d (%s): %08x %08x - %08x (%d)\n"),
301 a->internalid, seg->name, a->idtype, a->start, a->start + a->size - 1, a->size);
302 } else {
303 console_out_f(_T("Segment %d: %08x %08x - %08x (%d)\n"),
304 a->internalid, a->idtype, a->start, a->start + a->size - 1, a->size);
305 }
306 }
307 }
308}
309
310static void debugreportalloc(struct debugmemallocs *a)
311{

Callers 1

debugmem_list_segmentFunction · 0.85

Calls 1

console_out_fFunction · 0.50

Tested by

no test coverage detected