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;
2222use std:: process:: { self , Command } ;
2323use std:: str;
2424use std:: sync:: LazyLock ;
25+ use std:: time:: Instant ;
2526
2627pub mod bencher;
2728mod etw_parser;
@@ -758,6 +759,7 @@ fn parse_self_profile(
758759 }
759760 let ( profile, files) = if let Some ( profile_path) = full_path {
760761 // measureme 0.8+ uses a single file
762+ let start = Instant :: now ( ) ;
761763 let data = fs:: read ( & profile_path) ?;
762764
763765 // HACK: `decodeme` can unexpectedly panic on invalid data produced by rustc. We catch this
@@ -779,6 +781,10 @@ fn parse_self_profile(
779781 return Err ( std:: io:: Error :: new ( ErrorKind :: InvalidData , error) ) ;
780782 }
781783 } ;
784+ log:: trace!(
785+ "Self profile analyze duration: {}" ,
786+ start. elapsed( ) . as_secs_f64( )
787+ ) ;
782788
783789 let profile = SelfProfile {
784790 artifact_sizes : results. artifact_sizes ,
You can’t perform that action at this time.
0 commit comments