File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ impl Session {
826826 }
827827
828828 pub fn profiler < F : FnOnce ( & mut SelfProfiler ) -> ( ) > ( & self , f : F ) {
829- if self . opts . debugging_opts . self_profile {
829+ if self . opts . debugging_opts . self_profile || self . opts . debugging_opts . profile_json {
830830 let mut profiler = self . self_profiling . borrow_mut ( ) ;
831831 f ( & mut profiler) ;
832832 }
Original file line number Diff line number Diff line change @@ -356,10 +356,10 @@ pub fn compile_input(
356356
357357 if sess. opts . debugging_opts . self_profile {
358358 sess. print_profiler_results ( ) ;
359+ }
359360
360- if sess. opts . debugging_opts . profile_json {
361- sess. save_json_results ( ) ;
362- }
361+ if sess. opts . debugging_opts . profile_json {
362+ sess. save_json_results ( ) ;
363363 }
364364
365365 controller_entry_point ! (
You can’t perform that action at this time.
0 commit comments