From be3b6b57d1b77433c4d1d7bc2fa61cd95761877d Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 21 Dec 2020 21:23:00 -0500 Subject: rts/eventlog: Reset ticky counters after dumping sample --- rts/eventlog/EventLog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rts/eventlog') diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c index 6c7d1e836c..8aeea789e6 100644 --- a/rts/eventlog/EventLog.c +++ b/rts/eventlog/EventLog.c @@ -1524,6 +1524,10 @@ static void postTickyCounterSample(EventsBuf *eb, StgEntCounter *p) postWord64(eb, p->entry_count); postWord64(eb, p->allocs); postWord64(eb, p->allocd); + + p->entry_count = 0; + p->allocs = 0; + p->allocd = 0; } void postTickyCounterSamples(StgEntCounter *counters) -- cgit v1.2.1