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

Side by Side Diff: tools/perf/measurements/navigate.py

Issue 338433004: Remove navigate measurements since it's not used anywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from telemetry.page import page_measurement
6
7 class NavigateMeasurement(page_measurement.PageMeasurement):
8 """ Measures time between navigation start and the end of the navigate_steps
9
10 For pages where the 'load' event isn't a good measurement point, this
11 measurement allows a page_set to have its loading sequence listed by
12 way of navigate_steps, with a navigation_time result measured
13 by performance.now().
14 """
15 def __init__(self):
16 super(NavigateMeasurement, self).__init__()
17 self._navigate_time = None
18
19 def DidNavigateToPage(self, page, tab):
20 self._navigate_time = int(tab.EvaluateJavaScript('performance.now()'))
21
22 def MeasurePage(self, page, tab, results):
23 results.Add('navigate_time', 'ms', self._navigate_time)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698