From 76121f20a9ab9f53b801faaac4e95b8ea1dbf4b9 Mon Sep 17 00:00:00 2001 From: Karl W Schulz Date: Fri, 15 Mar 2024 09:05:03 -0500 Subject: [PATCH] enable more function demarcation for analyze tracing Signed-off-by: Karl W Schulz --- src/utils/parser.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/utils/parser.py b/src/utils/parser.py index 5495169042..77aa4b39dc 100644 --- a/src/utils/parser.py +++ b/src/utils/parser.py @@ -31,7 +31,7 @@ import warnings import pandas as pd import numpy as np from utils import schema -from utils.utils import console_warning, console_error +from utils.utils import console_warning, console_error, demarcate from pathlib import Path # ------------------------------------------------------------------------------ @@ -422,6 +422,7 @@ def calc_builtin_var(var, sys_info): console_error('Built-in var " %s " is not supported' % var) +@demarcate def build_dfs(archConfigs, filter_metrics, sys_info): """ - Build dataframe for each type of data source within each panel. @@ -664,6 +665,7 @@ def build_metric_value_string(dfs, dfs_type, normal_unit): # print(tabulate(df, headers='keys', tablefmt='fancy_grid')) +@demarcate def eval_metric(dfs, dfs_type, sys_info, raw_pmc_df, debug): """ Execute the expr string for each metric in the df. @@ -829,6 +831,7 @@ def eval_metric(dfs, dfs_type, sys_info, raw_pmc_df, debug): # print(tabulate(df, headers='keys', tablefmt='fancy_grid')) +@demarcate def apply_filters(workload, dir, is_gui, debug): """ Apply user's filters to the raw_pmc df. @@ -912,6 +915,7 @@ def apply_filters(workload, dir, is_gui, debug): return ret_df +@demarcate def load_kernel_top(workload, dir): # NB: # - Do pmc_kernel_top.csv loading before eval_metric because we need the kernel names. @@ -945,6 +949,7 @@ def load_kernel_top(workload, dir): workload.dfs.update(tmp) +@demarcate def load_table_data(workload, dir, is_gui, debug, verbose, skipKernelTop=False): """ Load data for all "raw_csv_table".