We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e49854 commit f22af66Copy full SHA for f22af66
crates/ra_prof/src/stop_watch.rs
@@ -1,3 +1,4 @@
1
+//! Like `std::time::Instant`, but also measures memory & CPU cycles.
2
use std::{
3
fmt,
4
time::{Duration, Instant},
@@ -76,14 +77,3 @@ impl fmt::Display for StopWatchSpan {
76
77
Ok(())
78
}
79
-
80
-// Unclear if we need this:
81
-// https://github.com/jimblandy/perf-event/issues/8
82
-impl Drop for StopWatch {
83
- fn drop(&mut self) {
84
- #[cfg(target_os = "linux")]
85
- if let Some(mut counter) = self.counter.take() {
86
- let _ = counter.disable();
87
- }
88
89
-}
0 commit comments