Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools/funclatency: Should clear() after display that is what we want #3380

Merged
merged 1 commit into from
Apr 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tools/funclatency.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ def print_section(key):
bucket_fn=lambda k: (k.ip, k.pid))
else:
dist.print_log2_hist(label)
dist.clear()

total = b['avg'][0].value
counts = b['avg'][1].value
Expand All @@ -408,6 +407,9 @@ def print_section(key):
avg = total/counts
print("\navg = %ld %s, total: %ld %s, count: %ld\n" %(total/counts, label, total, label, counts))

dist.clear()
b['avg'].clear()

if exiting:
print("Detaching...")
exit()