formatting

Signed-off-by: Nicholas Curtis <nicurtis@amd.com>


[ROCm/rocprofiler-compute commit: f6f6165379]
This commit is contained in:
Nicholas Curtis
2024-03-28 16:39:09 -04:00
committed by Cole Ramos
parent 3ff4117c4e
commit ed86d5c64c
2 changed files with 9 additions and 6 deletions
@@ -215,10 +215,12 @@ class OmniSoC_Base:
if not roofline_perfmon_only:
# we sort so that we have a consistent ordering of files between runs
# regardless of the file-system, etc.
ref_pmc_files_list = sorted(glob.glob(self.__perfmon_dir + "/" + "pmc_*perf*.txt"))
ref_pmc_files_list += sorted(glob.glob(
self.__perfmon_dir + "/" + self.__arch + "/pmc_*_perf*.txt"
))
ref_pmc_files_list = sorted(
glob.glob(self.__perfmon_dir + "/" + "pmc_*perf*.txt")
)
ref_pmc_files_list += sorted(
glob.glob(self.__perfmon_dir + "/" + self.__arch + "/pmc_*_perf*.txt")
)
# Perfmon list filtering
if self.__args.ipblocks != None:
@@ -242,7 +244,9 @@ class OmniSoC_Base:
else:
# we sort so that we have a consistent ordering of files between runs
# regardless of the file-system, etc.
ref_pmc_files_list = sorted(glob.glob(self.__perfmon_dir + "/" + "pmc_roof_perf.txt"))
ref_pmc_files_list = sorted(
glob.glob(self.__perfmon_dir + "/" + "pmc_roof_perf.txt")
)
pmc_files_list = ref_pmc_files_list
# Coalesce and writeback workload specific perfmon
@@ -64,7 +64,6 @@ class PlainFormatter(logging.Formatter):
# Setup console handler - provided as separate function to be called
# prior to argument parsing
def setup_console_handler():
color_setting = 0
if "OMNIPERF_COLOR" in os.environ.keys():
color_setting = int(os.environ["OMNIPERF_COLOR"])