Fix some comments.
- It's `--print`, not `--prints`. - `-Ztime` and `-Ztime-passes` print to stderr, not stdout.
This commit is contained in:
parent
0922559768
commit
eea06de0c8
@ -158,10 +158,10 @@ pub struct SelfProfilerRef {
|
|||||||
// actually enabled.
|
// actually enabled.
|
||||||
event_filter_mask: EventFilter,
|
event_filter_mask: EventFilter,
|
||||||
|
|
||||||
// Print verbose generic activities to stdout
|
// Print verbose generic activities to stderr.
|
||||||
print_verbose_generic_activities: bool,
|
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,
|
print_extra_verbose_generic_activities: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ impl SelfProfilerRef {
|
|||||||
/// Start profiling a verbose generic activity. Profiling continues until the
|
/// Start profiling a verbose generic activity. Profiling continues until the
|
||||||
/// VerboseTimingGuard returned from this call is dropped. In addition to recording
|
/// VerboseTimingGuard returned from this call is dropped. In addition to recording
|
||||||
/// a measureme event, "verbose" generic activities also print a timing entry to
|
/// 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>(
|
pub fn verbose_generic_activity<'a>(
|
||||||
&'a self,
|
&'a self,
|
||||||
event_label: &'static str,
|
event_label: &'static str,
|
||||||
@ -228,7 +228,7 @@ impl SelfProfilerRef {
|
|||||||
/// Start profiling an extra verbose generic activity. Profiling continues until the
|
/// Start profiling an extra verbose generic activity. Profiling continues until the
|
||||||
/// VerboseTimingGuard returned from this call is dropped. In addition to recording
|
/// VerboseTimingGuard returned from this call is dropped. In addition to recording
|
||||||
/// a measureme event, "extra verbose" generic activities also print a timing entry to
|
/// 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>(
|
pub fn extra_verbose_generic_activity<'a, A>(
|
||||||
&'a self,
|
&'a self,
|
||||||
event_label: &'static str,
|
event_label: &'static str,
|
||||||
|
@ -128,8 +128,8 @@ pub struct TimePassesCallbacks {
|
|||||||
|
|
||||||
impl Callbacks for TimePassesCallbacks {
|
impl Callbacks for TimePassesCallbacks {
|
||||||
fn config(&mut self, config: &mut interface::Config) {
|
fn config(&mut self, config: &mut interface::Config) {
|
||||||
// If a --prints=... option has been given, we don't print the "total"
|
// If a --print=... option has been given, we don't print the "total"
|
||||||
// time because it will mess up the --prints output. See #64339.
|
// time because it will mess up the --print output. See #64339.
|
||||||
self.time_passes = config.opts.prints.is_empty() && config.opts.time_passes();
|
self.time_passes = config.opts.prints.is_empty() && config.opts.time_passes();
|
||||||
config.opts.trimmed_def_paths = TrimmedDefPaths::GoodPath;
|
config.opts.trimmed_def_paths = TrimmedDefPaths::GoodPath;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user