From 9b81372c07c1ea02136217a047c6210f4838e94a Mon Sep 17 00:00:00 2001 From: Thaumy Date: Fri, 2 Feb 2024 08:49:00 +0800 Subject: [PATCH] make `member_counts` of group stat struct public --- src/perf_event/counting/group/stat.rs | 4 ++-- src/perf_event/sampling/group/stat.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/perf_event/counting/group/stat.rs b/src/perf_event/counting/group/stat.rs index 3266163..0ab9f50 100644 --- a/src/perf_event/counting/group/stat.rs +++ b/src/perf_event/counting/group/stat.rs @@ -10,8 +10,8 @@ use std::{io, slice}; pub struct CounterGroupStat { pub time_enabled: u64, pub time_running: u64, - // Map of event_id -> event_count - member_counts: HashMap, + /// Map of `event_id` -> `event_count` + pub member_counts: HashMap, } impl CounterGroupStat { diff --git a/src/perf_event/sampling/group/stat.rs b/src/perf_event/sampling/group/stat.rs index 6a7aadc..f13a531 100644 --- a/src/perf_event/sampling/group/stat.rs +++ b/src/perf_event/sampling/group/stat.rs @@ -9,8 +9,8 @@ use std::{io, slice}; pub struct SamplerGroupStat { pub time_enabled: u64, pub time_running: u64, - // Map of event_id -> MemberCount - member_counts: HashMap, + /// Map of `event_id` -> [`MemberCount`] + pub member_counts: HashMap, } #[derive(Debug, Clone)]