File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ impl Session {
826
826
}
827
827
828
828
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 {
830
830
let mut profiler = self . self_profiling . borrow_mut ( ) ;
831
831
f ( & mut profiler) ;
832
832
}
Original file line number Diff line number Diff line change @@ -356,10 +356,10 @@ pub fn compile_input(
356
356
357
357
if sess. opts . debugging_opts . self_profile {
358
358
sess. print_profiler_results ( ) ;
359
+ }
359
360
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 ( ) ;
363
363
}
364
364
365
365
controller_entry_point ! (
You can’t perform that action at this time.
0 commit comments