Commit 1079bb2e by Jamie Madill

Fix up perf test runner script.

The missing check was a bit buggy, and the paths were not updated to the new 'gyp' folder instead of 'build'. BUG=angleproject:1569 Change-Id: I10408252851e90b79e306c8aea175ebe6a931b61 Reviewed-on: https://chromium-review.googlesource.com/412320Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent dd9e6396
...@@ -21,8 +21,8 @@ base_path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file_ ...@@ -21,8 +21,8 @@ base_path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file_
perftests_paths = [ perftests_paths = [
os.path.join('out', 'Release_x64'), os.path.join('out', 'Release_x64'),
os.path.join('out', 'Release'), os.path.join('out', 'Release'),
os.path.join('build', 'Release_x64'), os.path.join('gyp', 'Release_x64'),
os.path.join('build', 'Release_Win32') os.path.join('gyp', 'Release_Win32')
] ]
metric = 'score' metric = 'score'
...@@ -72,16 +72,16 @@ newest_mtime = None ...@@ -72,16 +72,16 @@ newest_mtime = None
for path in perftests_paths: for path in perftests_paths:
binary_path = os.path.join(base_path, path, binary_name) binary_path = os.path.join(base_path, path, binary_name)
binary_mtime = os.path.getmtime(binary_path)
if os.path.exists(binary_path): if os.path.exists(binary_path):
binary_mtime = os.path.getmtime(binary_path)
if (newest_binary is None) or (binary_mtime > newest_mtime): if (newest_binary is None) or (binary_mtime > newest_mtime):
newest_binary = binary_path newest_binary = binary_path
newest_mtime = binary_mtime newest_mtime = binary_mtime
perftests_path = newest_binary perftests_path = newest_binary
if not os.path.exists(perftests_path): if perftests_path == None or not os.path.exists(perftests_path):
print("Cannot find angle_perftests.exe!") print("Cannot find Release angle_perftests.exe!")
sys.exit(1) sys.exit(1)
test_name = "DrawCallPerfBenchmark.Run/d3d11_null" test_name = "DrawCallPerfBenchmark.Run/d3d11_null"
......
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