Skip to content

Commit

Permalink
add system wide to thread and socket (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
hilldani authored May 19, 2023
1 parent acc456e commit b36c31d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions perf-postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -961,5 +961,18 @@ def generate_raw_events(perf_data_df, out_file_path, perf_mode):
args.verbose,
args.fail_postprocessing,
)
if perf_mode != Mode.System: # always generate metrics on system level
set_CONST_TSC(meta_data, Mode.System)
generate_metrics(
perf_data_df,
out_file_path,
event_groups,
meta_data,
metrics,
Mode.System,
args.verbose,
args.fail_postprocessing,
)

logging.info("Generated results file(s) in: " + out_file_path.rsplit("/", 1)[0])
logging.info("Done!")

0 comments on commit b36c31d

Please sign in to comment.