Skip to content

Commit dc0c9ca

Browse files
committed
fix: don't rotate 3 times
1 parent 0999c8b commit dc0c9ca

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

profiling/src/profiling/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,15 +955,14 @@ impl Profiler {
955955
alloc_size: i64,
956956
interrupt_count: Option<u32>,
957957
) {
958-
let (result, _wall_time, _cpu_time) = self.collect_stack_sample_with_timeline(execute_data);
958+
let (result, wall_time, cpu_time) = self.collect_stack_sample_with_timeline(execute_data);
959959
match result {
960960
Ok(frames) => {
961961
let depth = frames.len();
962962

963963
// Optionally collect time data when interrupt_count is provided
964964
let (interrupt_count, wall_time, cpu_time, timestamp) =
965965
if let Some(count) = interrupt_count {
966-
let (wall_time, cpu_time) = CLOCKS.with_borrow_mut(Clocks::rotate_clocks);
967966
let timestamp = self.get_timeline_timestamp();
968967
(count as i64, wall_time, cpu_time, timestamp)
969968
} else {

0 commit comments

Comments
 (0)