aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-04-29 17:49:05 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-04-29 17:49:05 +0200
commit8a27203f9eaa136801947a6779b61d4e8813772b (patch)
tree9739123262731cb4113d5ce84f2ef1f3ee6dc27f /src
parent339e13537ad3c4717bb1245747b0e35964a4283b (diff)
downloadallocbench-8a27203f9eaa136801947a6779b61d4e8813772b.tar.gz
allocbench-8a27203f9eaa136801947a6779b61d4e8813772b.zip
chattyparser: only track calls when we should
Diffstat (limited to 'src')
-rwxr-xr-xsrc/chattyparser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chattyparser.py b/src/chattyparser.py
index 1f0242c..7b2de40 100755
--- a/src/chattyparser.py
+++ b/src/chattyparser.py
@@ -244,7 +244,8 @@ def parse(path="chattymalloc.txt",
try:
trace = Trace(entry)
- context["calls"][trace.func] += 1
+ if track_calls:
+ context["calls"][trace.func] += 1
msg = record_allocation(trace, context)
if msg:
print(f"entry {i}: {msg}", file=sys.stderr, end="")