Skip to content

Commit 789ee65

Browse files
committed
feat: return raw data
1 parent 3422397 commit 789ee65

File tree

1 file changed

+4
-0
lines changed
  • src/perf_event/sampling/single

1 file changed

+4
-0
lines changed

src/perf_event/sampling/single/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,8 @@ impl Sampler {
156156
pub fn get_raw_fd(&self) -> i32 {
157157
self.file.as_raw_fd()
158158
}
159+
160+
pub fn raw_data(&self) -> Vec<u8> {
161+
self.mmap.to_vec()
162+
}
159163
}

0 commit comments

Comments
 (0)