mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
apptrace: Adds HeapTraceEvent.callers property used by OpenOCD tests
This commit is contained in:
parent
e0b667804f
commit
eb2aa6fd67
@ -657,6 +657,10 @@ class HeapTraceEvent:
|
||||
def addr(self):
|
||||
return self.trace_event.params['addr'].value
|
||||
|
||||
@property
|
||||
def callers(self):
|
||||
return self.trace_event.params['callers'].value
|
||||
|
||||
def __repr__(self):
|
||||
if len(self.toolchain) and len(self.elf_path):
|
||||
callers = os.linesep
|
||||
@ -676,7 +680,8 @@ class HeapTraceEvent:
|
||||
return "[{:.9f}] HEAP: Allocated {:d} bytes @ 0x{:x} from {} on core {:d} by: {}".format(self.trace_event.ts,
|
||||
self.size, self.addr,
|
||||
self.trace_event.ctx_desc,
|
||||
self.trace_event.core_id, callers)
|
||||
self.trace_event.core_id,
|
||||
callers)
|
||||
else:
|
||||
return "[{:.9f}] HEAP: Freed bytes @ 0x{:x} from {} on core {:d} by: {}".format(self.trace_event.ts,
|
||||
self.addr, self.trace_event.ctx_desc,
|
||||
|
Loading…
x
Reference in New Issue
Block a user