diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-10-06 14:13:12 +1100 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-10-06 14:22:12 +1100 | 
| commit | eea06de0c894921deab541ad03c5ab728d4c449b (patch) | |
| tree | 45950c61996b2166fe7d41b3b153856093a74142 /compiler/rustc_data_structures/src/profiling.rs | |
| parent | 092255976862c1f0121bb4446acd38336a860c4f (diff) | |
| download | rust-eea06de0c894921deab541ad03c5ab728d4c449b.tar.gz rust-eea06de0c894921deab541ad03c5ab728d4c449b.zip | |
Fix some comments.
- It's `--print`, not `--prints`. - `-Ztime` and `-Ztime-passes` print to stderr, not stdout.
Diffstat (limited to 'compiler/rustc_data_structures/src/profiling.rs')
| -rw-r--r-- | compiler/rustc_data_structures/src/profiling.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/compiler/rustc_data_structures/src/profiling.rs b/compiler/rustc_data_structures/src/profiling.rs index d8b26f9840b..3e74032d851 100644 --- a/compiler/rustc_data_structures/src/profiling.rs +++ b/compiler/rustc_data_structures/src/profiling.rs @@ -158,10 +158,10 @@ pub struct SelfProfilerRef { // actually enabled. event_filter_mask: EventFilter, - // Print verbose generic activities to stdout + // Print verbose generic activities to stderr. print_verbose_generic_activities: bool, - // Print extra verbose generic activities to stdout + // Print extra verbose generic activities to stderr. print_extra_verbose_generic_activities: bool, } @@ -214,7 +214,7 @@ impl SelfProfilerRef { /// Start profiling a verbose generic activity. Profiling continues until the /// 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. + /// stderr if the compiler is invoked with -Ztime or -Ztime-passes. pub fn verbose_generic_activity<'a>( &'a self, event_label: &'static str, @@ -228,7 +228,7 @@ impl SelfProfilerRef { /// Start profiling an extra verbose generic activity. Profiling continues until the /// 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. + /// stderr if the compiler is invoked with -Ztime-passes. pub fn extra_verbose_generic_activity<'a, A>( &'a self, event_label: &'static str, | 
