Commit e4530713 authored by adamk@chromium.org's avatar adamk@chromium.org

Update Pica WPR and replace 'pica' benchmark with 'polymer_load.pica'

The polymer_load measurement is one we intend to use for measuring other
Polymer apps loading (e.g., paper-calculator, Topeka).

R=tonyg@chromium.org

Review URL: https://codereview.chromium.org/435043003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287109 0039d316-1c4b-4281-b951-d872f2087c98
parent 99ec22dc
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import page_sets
from telemetry import benchmark
from telemetry.page import page_measurement
from telemetry.value import scalar
class _PicaMeasurement(page_measurement.PageMeasurement):
def CustomizeBrowserOptions(self, options):
# Needed for native custom elements (document.register)
options.AppendExtraBrowserArgs(
'--enable-experimental-web-platform-features')
def MeasurePage(self, _, tab, results):
result = int(tab.EvaluateJavaScript('__polymer_ready_time'))
results.AddValue(scalar.ScalarValue(
results.current_page, 'Total', 'ms', result))
class Pica(benchmark.Benchmark):
test = _PicaMeasurement
page_set = page_sets.PicaPageSet
......@@ -7,7 +7,6 @@ import page_sets
from telemetry import benchmark
@benchmark.Disabled
class PolymerLoadPica(benchmark.Benchmark):
"""Measures time to polymer-ready for PICA."""
test = polymer_load.PolymerLoadMeasurement
......
{
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"archives": {
"pica_008.wpr": [
"pica_009.wpr": [
"http://localhost/polymer/projects/pica/"
]
}
}
\ No newline at end of file
}
bddfb6cd3bc1640f7041f1d8ad06da7aa5b1cdea
\ No newline at end of file
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