Skip to content

Commit 0f945d7

Browse files
committed
added DD stats
1 parent 2f54daf commit 0f945d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ReadoutStats.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ struct ReadoutStatsCounters {
4848
std::atomic<uint32_t> logMessagesError; // number of log messages (severity: error)
4949
std::atomic<uint32_t> currentOrbit; // 1st orbit of current timeframe (last out of aggregator)
5050
std::atomic<double> bufferUsage[ReadoutStatsMaxItems]; // buffer usage. -1 means not used.
51+
std::atomic<uint64_t> ddHBFRepacked; // Data Distribution: number of HBF re-packed (HBF overlapping superpages)
52+
std::atomic<uint64_t> ddBytesCopied; // Data Distribution: number of bytes copied (HBF overlapping superpages)
53+
std::atomic<uint64_t> ddMemoryPendingBytes; // Data Distribution: number of bytes pending release in ConsumerFMQ (real memory)
54+
std::atomic<uint64_t> ddPayloadPendingBytes; // Data Distribution: number of bytes pending release in ConsumerFMQ (payload only, not accounting for memory fragmentation overhead)
5155
};
5256

5357
// version number of this struct
54-
const uint32_t ReadoutStatsCountersVersion = 0xA0000002;
58+
const uint32_t ReadoutStatsCountersVersion = 0xA0000003;
5559

5660
// need to be able to easily transmit this struct as a whole
5761
static_assert(std::is_pod<ReadoutStatsCounters>::value);

0 commit comments

Comments
 (0)