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

Side by Side Diff: tools/perf/page_sets/idle_multi_tab_cases.js

Issue 1145173002: Add benchmark that tests garbage collector and idle time handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable for Android to avoid OOM crash (benchmark needs > 700MB) 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 unified diff | Download patch
« no previous file with comments | « tools/perf/benchmarks/memory.py ('k') | tools/perf/page_sets/idle_multi_tab_cases.py » ('j') | 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 2015 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 __telemetry_spawned_tabs = [];
6
7 function __telemetry_spawn_tab() {
8 var tab = window.open(window.location.href);
9 if (typeof tab === "undefined") {
10 throw "Cannot open tab. Forgot --disable-popup-blocking flag?";
11 }
12 __telemetry_spawned_tabs.push(tab);
13 return __telemetry_spawned_tabs.length - 1;
14 }
15
16 function __telemetry_close_tab(tab) {
17 __telemetry_spawned_tabs[tab].close();
18 __telemetry_spawned_tabs[tab] = null;
19 }
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/memory.py ('k') | tools/perf/page_sets/idle_multi_tab_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698