You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/ra_prof/src/hprof.rs
+21-24Lines changed: 21 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,9 @@ pub fn init_from(spec: &str) {
30
30
pubtypeLabel = &'staticstr;
31
31
32
32
/// This function starts a profiling scope in the current execution stack with a given description.
33
-
/// It returns a Profile structure and measure elapsed time between this method invocation and Profile structure drop.
34
-
/// It supports nested profiling scopes in case when this function invoked multiple times at the execution stack. In this case the profiling information will be nested at the output.
33
+
/// It returns a `Profile` struct that measures elapsed time between this method invocation and `Profile` struct drop.
34
+
/// It supports nested profiling scopes in case when this function is invoked multiple times at the execution stack.
35
+
/// In this case the profiling information will be nested at the output.
35
36
/// Profiling information is being printed in the stderr.
36
37
///
37
38
/// # Example
@@ -58,36 +59,35 @@ pub type Label = &'static str;
58
59
/// ```
59
60
pubfnprofile(label:Label) -> Profiler{
60
61
assert!(!label.is_empty());
61
-
let enabled = PROFILING_ENABLED.load(Ordering::Relaxed)
0 commit comments