Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: tools/perf/metrics/system_memory.py

Issue 1083073003: Add a 4k 60 fps vp9 smpte bars video to telemetry tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Default to 0 if metric is not present in dict. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/perf/page_sets/tough_video_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/system_memory.py
diff --git a/tools/perf/metrics/system_memory.py b/tools/perf/metrics/system_memory.py
index ec3ce2e9ed542b9004411df223a94fa89c53a09f..ea02fbddbf6ef9501bca10d9ebb150605965edb5 100644
--- a/tools/perf/metrics/system_memory.py
+++ b/tools/perf/metrics/system_memory.py
@@ -117,7 +117,7 @@ def _SubtractMemoryStats(end_memory_stats, start_memory_stats):
else:
for metric in end_process_memory:
end_value = end_process_memory[metric]
- start_value = start_memory_stats[process_type][metric] or 0
+ start_value = start_memory_stats[process_type].get(metric, 0)
if 'Peak' in metric:
memory_stats[process_type][metric] = end_value
else:
« no previous file with comments | « no previous file | tools/perf/page_sets/tough_video_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698