diff --git a/gdb-port/top-level-parse.py b/gdb-port/top-level-parse.py index 4f2a141ee2596864dd6d3b5489502b5dc604cea4..a5ccd2408096ad18f8b7f65597e4a0d95c51e335 100644 --- a/gdb-port/top-level-parse.py +++ b/gdb-port/top-level-parse.py @@ -44,7 +44,8 @@ class TopLevelParse: # TODO: invalidate previous memory stacks # Originally meant to allow changing between different forms of gathering memory statistics. # The only valid translation is BREAKPOINT -> DETAILED_ARENA_STATS - # If the HMallocRaw breakpoint is turned off, DETAILED_ARENA_STATS -> BREAKPOINT is no longer possible, since some allocations will have been missed + # If the HMallocRawBreakpoint is turned off, DETAILED_ARENA_STATS -> BREAKPOINT is no longer possible, since some allocations will have been missed + # TODO: if allocated tokens can be attributed to parsers retroactively from Hammer's stats, then future support for DETAILED_ARENA_STATS -> BREAKPOINT is possible if not extended_arena_stats_available(): print("Can't use HArena statistics for memory: Hammer wasn't compiled with DETAILED_ARENA_STATS") else: @@ -66,6 +67,7 @@ class TopLevelParse: #if self.memory_stat_method == HammerMemoryStatisticsMethod.DETAILED_ARENA_STATS if self.extended_arena_stats_available(): # DEBUG self.bytes_at_enter.append(arena['arena_malloc_bytes']) + self.cumulative_byte_differences = [] try: parser_obj = self.parser_objs[parser]