File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
collector/src/compile/execute Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ use std::pin::Pin;
22
22
use std:: process:: { self , Command } ;
23
23
use std:: str;
24
24
use std:: sync:: LazyLock ;
25
+ use std:: time:: Instant ;
25
26
26
27
pub mod bencher;
27
28
mod etw_parser;
@@ -758,6 +759,7 @@ fn parse_self_profile(
758
759
}
759
760
let ( profile, files) = if let Some ( profile_path) = full_path {
760
761
// measureme 0.8+ uses a single file
762
+ let start = Instant :: now ( ) ;
761
763
let data = fs:: read ( & profile_path) ?;
762
764
763
765
// HACK: `decodeme` can unexpectedly panic on invalid data produced by rustc. We catch this
@@ -779,6 +781,10 @@ fn parse_self_profile(
779
781
return Err ( std:: io:: Error :: new ( ErrorKind :: InvalidData , error) ) ;
780
782
}
781
783
} ;
784
+ log:: trace!(
785
+ "Self profile analyze duration: {}" ,
786
+ start. elapsed( ) . as_secs_f64( )
787
+ ) ;
782
788
783
789
let profile = SelfProfile {
784
790
artifact_sizes : results. artifact_sizes ,
You can’t perform that action at this time.
0 commit comments