We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0999c8b commit dc0c9caCopy full SHA for dc0c9ca
1 file changed
profiling/src/profiling/mod.rs
@@ -955,15 +955,14 @@ impl Profiler {
955
alloc_size: i64,
956
interrupt_count: Option<u32>,
957
) {
958
- let (result, _wall_time, _cpu_time) = self.collect_stack_sample_with_timeline(execute_data);
+ let (result, wall_time, cpu_time) = self.collect_stack_sample_with_timeline(execute_data);
959
match result {
960
Ok(frames) => {
961
let depth = frames.len();
962
963
// Optionally collect time data when interrupt_count is provided
964
let (interrupt_count, wall_time, cpu_time, timestamp) =
965
if let Some(count) = interrupt_count {
966
- let (wall_time, cpu_time) = CLOCKS.with_borrow_mut(Clocks::rotate_clocks);
967
let timestamp = self.get_timeline_timestamp();
968
(count as i64, wall_time, cpu_time, timestamp)
969
} else {
0 commit comments