Commit 395e62f6 authored by Ehsan Chiniforooshan's avatar Ehsan Chiniforooshan Committed by Commit Bot

Telemetry: merge running stats in testing results

Bug: 894622
Change-Id: I89647c29faccb5654000a98cebabea92d9511618
Reviewed-on: https://chromium-review.googlesource.com/c/1278850Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Commit-Queue: Ned Nguyen <nednguyen@google.com>
Commit-Queue: Ehsan Chiniforooshan <chiniforooshan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#599238}
parent 0ad8cbec
...@@ -31,5 +31,10 @@ def ExtractStat(results): ...@@ -31,5 +31,10 @@ def ExtractStat(results):
# page_test_results.py for a temporary usecase. # page_test_results.py for a temporary usecase.
if 'name' in histogram_dict: if 'name' in histogram_dict:
histogram = histogram_module.Histogram.FromDict(histogram_dict) histogram = histogram_module.Histogram.FromDict(histogram_dict)
stat[histogram.name] = histogram.running if histogram.running is None:
continue
if histogram.name in stat:
stat[histogram.name] = stat[histogram.name].Merge(histogram.running)
else:
stat[histogram.name] = histogram.running
return stat return stat
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