Reorganize the specs module to reduce duplicate code

Signed-off-by: colramos-amd <colramos@amd.com>


[ROCm/rocprofiler-compute commit: 3b1b8d7b5b]
This commit is contained in:
colramos-amd
2024-02-20 13:34:56 -06:00
committed by Cole Ramos
parent f240822ea1
commit 5352eafde4
20 changed files with 495 additions and 781 deletions
@@ -54,11 +54,7 @@ class DatabaseConnector:
self.client: MongoClient = None
@demarcate
def prep_import(self, profile_and_export=False):
if profile_and_export:
self.connection_info["workload"] = os.path.join(
self.connection_info["workload"], self.args.target
)
def prep_import(self):
# Extract SoC and workload name from sysinfo.csv
sys_info = os.path.join(self.connection_info["workload"], "sysinfo.csv")