File tree Expand file tree Collapse file tree 4 files changed +186
-83
lines changed
dev-tools/omdb/src/bin/omdb Expand file tree Collapse file tree 4 files changed +186
-83
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ use std::fs::OpenOptions;
9898use std:: os:: unix:: fs:: PermissionsExt ;
9999use std:: str:: FromStr ;
100100use std:: sync:: Arc ;
101+ use std:: time:: Duration ;
101102use support_bundle_viewer:: LocalFileAccess ;
102103use support_bundle_viewer:: SupportBundleAccessor ;
103104use tabled:: Tabled ;
@@ -2612,6 +2613,7 @@ fn print_task_support_bundle_collector(details: &serde_json::Value) {
26122613 listed_in_service_sleds,
26132614 listed_sps,
26142615 activated_in_db_ok,
2616+ mut steps,
26152617 ereports,
26162618 } ) = collection_report
26172619 {
@@ -2623,6 +2625,19 @@ fn print_task_support_bundle_collector(details: &serde_json::Value) {
26232625 println ! (
26242626 " Bundle was able to list service processors: {listed_sps}"
26252627 ) ;
2628+
2629+ steps. sort_unstable_by_key ( |s| s. start ) ;
2630+ for step in steps {
2631+ let duration = ( step. end - step. start )
2632+ . to_std ( )
2633+ . unwrap_or ( Duration :: from_millis ( 0 ) ) ;
2634+ println ! (
2635+ " Step {} ({}ms): {}" ,
2636+ step. name,
2637+ duration. as_millis( ) ,
2638+ step. status
2639+ ) ;
2640+ }
26262641 println ! (
26272642 " Bundle was activated in the database: {activated_in_db_ok}"
26282643 ) ;
You can’t perform that action at this time.
0 commit comments