diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2022-06-21 17:04:12 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-07-04 17:55:55 -0400 |
commit | aba482ea941bb0b06f041be950712ed71e047e81 (patch) | |
tree | 72ecb5bd029a37818f40cb7fd77851f8c59e3aa8 /rts/eventlog | |
parent | 3b13aab14589823744495306bfb4c7bb522d22a5 (diff) | |
download | haskell-aba482ea941bb0b06f041be950712ed71e047e81.tar.gz |
Ticky:Make json info a separate field.
Fixes #21233
Diffstat (limited to 'rts/eventlog')
-rw-r--r-- | rts/eventlog/EventLog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c index 0536ecdab6..bd65b6e642 100644 --- a/rts/eventlog/EventLog.c +++ b/rts/eventlog/EventLog.c @@ -1357,7 +1357,7 @@ void postProfBegin(void) #if defined(TICKY_TICKY) static void postTickyCounterDef(EventsBuf *eb, StgEntCounter *p) { - StgWord len = 8 + 2 + strlen(p->arg_kinds)+1 + strlen(p->str)+1 + 8; + StgWord len = 8 + 2 + strlen(p->arg_kinds)+1 + strlen(p->str)+1 + 8 + strlen(p->ticky_json)+1; ensureRoomForVariableEvent(eb, len); postEventHeader(eb, EVENT_TICKY_COUNTER_DEF); postPayloadSize(eb, len); @@ -1367,6 +1367,8 @@ static void postTickyCounterDef(EventsBuf *eb, StgEntCounter *p) postString(eb, p->arg_kinds); postString(eb, p->str); postWord64(eb, (W_) (INFO_PTR_TO_STRUCT(p->info))); + postString(eb, p->ticky_json); + } void postTickyCounterDefs(StgEntCounter *counters) |