diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-01-08 21:32:00 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-01-09 07:06:41 +0100 |
| commit | 7db4b7efa28ae62cfc95f34b6ffdad81f2e59b09 (patch) | |
| tree | 28fdd3b156e57080e0fdd49a11f08221b864fefd | |
| parent | 5427601e9ed173ad8e36adf02e5883729753af20 (diff) | |
| download | rust-7db4b7efa28ae62cfc95f34b6ffdad81f2e59b09.tar.gz rust-7db4b7efa28ae62cfc95f34b6ffdad81f2e59b09.zip | |
More comments
| -rw-r--r-- | src/librustc_data_structures/profiling.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/librustc_data_structures/profiling.rs b/src/librustc_data_structures/profiling.rs index b779bcbd55d..a9d3a2668aa 100644 --- a/src/librustc_data_structures/profiling.rs +++ b/src/librustc_data_structures/profiling.rs @@ -134,7 +134,9 @@ impl SelfProfilerRef { } /// Start profiling a verbose generic activity. Profiling continues until the - /// VerboseTimingGuard returned from this call is dropped. + /// VerboseTimingGuard returned from this call is dropped. In addition to recording + /// a measureme event, "verbose" generic activities also print a timing entry to + /// stdout if the compiler is invoked with -Ztime or -Ztime-passes. #[inline(always)] pub fn verbose_generic_activity<'a>(&'a self, event_id: &'a str) -> VerboseTimingGuard<'a> { VerboseTimingGuard::start( @@ -145,7 +147,9 @@ impl SelfProfilerRef { } /// Start profiling a extra verbose generic activity. Profiling continues until the - /// VerboseTimingGuard returned from this call is dropped. + /// VerboseTimingGuard returned from this call is dropped. In addition to recording + /// a measureme event, "extra verbose" generic activities also print a timing entry to + /// stdout if the compiler is invoked with -Ztime-passes. #[inline(always)] pub fn extra_verbose_generic_activity<'a>( &'a self, |
