From ff8d2772ba7d04ddbddc5b4b86282dae3937fe92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Simonis?= Date: Wed, 29 Oct 2025 17:11:25 +0100 Subject: [PATCH] Add data as debug annotations to pftrace --- preciceprofiling/common.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/preciceprofiling/common.py b/preciceprofiling/common.py index f81bd65..3d3a473 100644 --- a/preciceprofiling/common.py +++ b/preciceprofiling/common.py @@ -259,6 +259,13 @@ def groupFor(name): entry.name = name pkt.sequence_flags = TracePacket.SEQ_NEEDS_INCREMENTAL_STATE + # add data + if e.data: + for key, value in json.loads(e.data).items(): + annotation = pkt.track_event.debug_annotations.add() + annotation.name = key + annotation.int_value = value + # end leftover events for a in active: pkt = builder.add_packet()