We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e9e92d5 + 3858aff commit cd1ee5eCopy full SHA for cd1ee5e
src/librustc/session/mod.rs
@@ -826,7 +826,7 @@ impl Session {
826
}
827
828
pub fn profiler<F: FnOnce(&mut SelfProfiler) -> ()>(&self, f: F) {
829
- if self.opts.debugging_opts.self_profile {
+ if self.opts.debugging_opts.self_profile || self.opts.debugging_opts.profile_json {
830
let mut profiler = self.self_profiling.borrow_mut();
831
f(&mut profiler);
832
src/librustc_driver/driver.rs
@@ -356,10 +356,10 @@ pub fn compile_input(
356
357
if sess.opts.debugging_opts.self_profile {
358
sess.print_profiler_results();
359
+ }
360
- if sess.opts.debugging_opts.profile_json {
361
- sess.save_json_results();
362
- }
+ if sess.opts.debugging_opts.profile_json {
+ sess.save_json_results();
363
364
365
controller_entry_point!(
0 commit comments