From d137c2176a24d45a23721e8ff7abcc9f6ae24075 Mon Sep 17 00:00:00 2001 From: Steven Tang Date: Thu, 21 Apr 2022 04:37:18 +0000 Subject: [PATCH] Revert compilation flag back to O4 --- .../PyVisualizer/src/V3/.idea/workspace.xml | 27 +++++++------------ Analyzer/PyVisualizer/src/V3/main.py | 9 ++++--- libHook-c/CMakeLists.txt | 2 +- 3 files changed, 17 insertions(+), 21 deletions(-) diff --git a/Analyzer/PyVisualizer/src/V3/.idea/workspace.xml b/Analyzer/PyVisualizer/src/V3/.idea/workspace.xml index 4860b779..3f8a8d1c 100644 --- a/Analyzer/PyVisualizer/src/V3/.idea/workspace.xml +++ b/Analyzer/PyVisualizer/src/V3/.idea/workspace.xml @@ -2,21 +2,9 @@ - - - - - - - - - - - - - - + + @@ -97,9 +85,14 @@ file://$PROJECT_DIR$/main.py - 100 + 103 + + file://$PROJECT_DIR$/main.py + 91 + @@ -109,6 +102,6 @@ - + \ No newline at end of file diff --git a/Analyzer/PyVisualizer/src/V3/main.py b/Analyzer/PyVisualizer/src/V3/main.py index c6644987..f33b1a18 100644 --- a/Analyzer/PyVisualizer/src/V3/main.py +++ b/Analyzer/PyVisualizer/src/V3/main.py @@ -17,7 +17,10 @@ def parsePthreadId(fileNameList): raise Exception('Cannot find pthread library in fileList') -scalerDataFolder = '/media/umass/datasystem/steven/benchmark/parsec/tests/dedup/scalerdata_30414326191467414' +# scalerDataFolder = '/media/umass/datasystem/steven/benchmark/parsec/tests/dedup/scalerdata_30414326191467414' + +scalerDataFolder = '/media/umass/datasystem/steven/benchmark/parsec/tests/swaptions/scalerdata_30493032039599146' + df = pd.read_csv(os.path.join(scalerDataFolder, 'fileName.txt')) fileNameList = df['pathName'].to_list() pthreadFileId = parsePthreadId(fileNameList) @@ -90,13 +93,13 @@ def generateTimingStruct(aggregatedTimeEntries): for i in range(len(timingRecord)): curFileRecord = timingRecord[i] curFileRecord.selfDuration += curFileRecord.totalDuration - curFileRecord.selfDurationPercent = curFileRecord.selfDuration / applicationDuration * 100 + curFileRecord.selfDurationPerc0ent = curFileRecord.selfDuration / applicationDuration * 100 for j in curFileRecord.extFileTiming.keys(): curExtFileRecord = curFileRecord.extFileTiming[j] curExtFileRecord.totalExtTimePercent = curExtFileRecord.totalExtTime/curFileRecord.totalDuration * 100 for k in curExtFileRecord.extSymTiming.keys(): curExtSymRecord = curExtFileRecord.extSymTiming[k] - curExtSymRecord.timePercent = curExtSymRecord.time / curExtFileRecord.totalExtTime + curExtSymRecord.timePercent = curExtSymRecord.time / curExtFileRecord.totalExtTime * 100 print(timingRecord) diff --git a/libHook-c/CMakeLists.txt b/libHook-c/CMakeLists.txt index 55d2e7ff..c974c2a1 100644 --- a/libHook-c/CMakeLists.txt +++ b/libHook-c/CMakeLists.txt @@ -2,7 +2,7 @@ project(Hook VERSION 0.1.7) # Set global (Relative this folder until reset) compiler options -set(SCALER_HOOK_COMPILATION_FLAGS "-O0" "-g" "-Werror") +set(SCALER_HOOK_COMPILATION_FLAGS "-O4" "-g" "-Werror") # https://json.nlohmann.me/integration/cmake/