Skip to content

Commit

Permalink
make member_counts of group stat struct public
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Feb 2, 2024
1 parent cfa4f15 commit 9b81372
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/perf_event/counting/group/stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64, u64>,
/// Map of `event_id` -> `event_count`
pub member_counts: HashMap<u64, u64>,
}

impl CounterGroupStat {
Expand Down
4 changes: 2 additions & 2 deletions src/perf_event/sampling/group/stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64, MemberCount>,
/// Map of `event_id` -> [`MemberCount`]
pub member_counts: HashMap<u64, MemberCount>,
}

#[derive(Debug, Clone)]
Expand Down

0 comments on commit 9b81372

Please sign in to comment.