Kaydet (Commit) ad91cfdc authored tarafından Laurent Godard's avatar Laurent Godard

parse-perfcheck : add filename to csv results

one can find callgrind output file more easilly

Change-Id: Ic5019d5259a63ab23ed44d39baaeb7432690382e
Reviewed-on: https://gerrit.libreoffice.org/12450Reviewed-by: 's avatarRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Tested-by: 's avatarRiccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
üst a5a307a6
...@@ -47,14 +47,14 @@ def parseFile(dirname, filename, lastCommit): ...@@ -47,14 +47,14 @@ def parseFile(dirname, filename, lastCommit):
colsResult[lastCommitId]['values'][curTestComment] = total colsResult[lastCommitId]['values'][curTestComment] = total
return [lastCommitId, lastCommitDate, testName, curTestComment, total] return [lastCommitId, lastCommitDate, testName, curTestComment, total, filename]
def processDirectory(rootDir, needsCsvHeader, lastCommit): def processDirectory(rootDir, needsCsvHeader, lastCommit):
results = [] results = []
if needsCsvHeader: if needsCsvHeader:
results.append(["lastCommit", "lastCommitDate", "test filename", "dump comment", "count"]) results.append(["lastCommit", "lastCommitDate", "test filename", "dump comment", "count", "filename"])
for dirName, subdirList, fileList in os.walk(rootDir): for dirName, subdirList, fileList in os.walk(rootDir):
files = [f for f in fileList if f.startswith("callgrind.out.")] files = [f for f in fileList if f.startswith("callgrind.out.")]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment