Skip to content

Commit

Permalink
Revert compilation flag back to O4
Browse files Browse the repository at this point in the history
  • Loading branch information
GammaPi committed Apr 21, 2022
1 parent 22bf440 commit d137c21
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
27 changes: 10 additions & 17 deletions Analyzer/PyVisualizer/src/V3/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions Analyzer/PyVisualizer/src/V3/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion libHook-c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/


Expand Down

0 comments on commit d137c21

Please sign in to comment.