Skip to content

Commit 7db4b7e

Browse files
committedJan 9, 2020
More comments
1 parent 5427601 commit 7db4b7e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎src/librustc_data_structures/profiling.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ impl SelfProfilerRef {
134134
}
135135

136136
/// Start profiling a verbose generic activity. Profiling continues until the
137-
/// VerboseTimingGuard returned from this call is dropped.
137+
/// VerboseTimingGuard returned from this call is dropped. In addition to recording
138+
/// a measureme event, "verbose" generic activities also print a timing entry to
139+
/// stdout if the compiler is invoked with -Ztime or -Ztime-passes.
138140
#[inline(always)]
139141
pub fn verbose_generic_activity<'a>(&'a self, event_id: &'a str) -> VerboseTimingGuard<'a> {
140142
VerboseTimingGuard::start(
@@ -145,7 +147,9 @@ impl SelfProfilerRef {
145147
}
146148

147149
/// Start profiling a extra verbose generic activity. Profiling continues until the
148-
/// VerboseTimingGuard returned from this call is dropped.
150+
/// VerboseTimingGuard returned from this call is dropped. In addition to recording
151+
/// a measureme event, "extra verbose" generic activities also print a timing entry to
152+
/// stdout if the compiler is invoked with -Ztime-passes.
149153
#[inline(always)]
150154
pub fn extra_verbose_generic_activity<'a>(
151155
&'a self,

0 commit comments

Comments
 (0)