aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-01-24 20:58:11 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-01-24 20:58:11 +0100
commiteae8e1bf3d48beb5da48cb8f04df94a02c87bcb0 (patch)
tree664e6ea6c356186bc3bfea1abb2dfe05cb4768fc
parentb8c9dd405ffe7cf1e36c2eb4cb6c278e6ac1fbaa (diff)
downloadallocbench-eae8e1bf3d48beb5da48cb8f04df94a02c87bcb0.tar.gz
allocbench-eae8e1bf3d48beb5da48cb8f04df94a02c87bcb0.zip
fix missing output messages
-rwxr-xr-xsrc/chattyparser.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chattyparser.py b/src/chattyparser.py
index 54f946f..2cbd974 100755
--- a/src/chattyparser.py
+++ b/src/chattyparser.py
@@ -136,7 +136,7 @@ def record_allocation(trace, context):
# check for alignment
if CHECK_ALIGNMENT:
if (trace.ptr - CHECK_ALIGNMENT[1]) % CHECK_ALIGNMENT[0] != 0:
- msg += f"WARNING: ptr: {trace.ptr:x} is not aligned to {CHECK_ALIGNMENT[0]:x} with offset {CHECK_ALIGNMENT[1]}\n"
+ msg += f"WARNING: ptr: {trace.ptr:x} is not aligned to {CHECK_ALIGNMENT[0]} with offset {CHECK_ALIGNMENT[1]}\n"
if trace.func == Function.calloc:
size = trace.var_arg * trace.size
@@ -145,7 +145,7 @@ def record_allocation(trace, context):
allocations[trace.ptr] = size
- msg = update_cache_lines(cache_lines, trace, size)
+ msg += update_cache_lines(cache_lines, trace, size)
# update hist
if hist is not None and trace.func != Function.free:
@@ -247,6 +247,7 @@ def parse(path="chattymalloc.txt",
i += 1
entry = trace_file.read(Trace.size)
+ print(f"\r[{i} / {total_entries}] {(i / total_entries) * 100:.2f}% parsed ...")
return context