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

Unified Diff: tools/telemetry/telemetry/all_page_interactions.py

Issue 11273081: Adding a test for measuring memory usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review (tonyg, nduca) Created 8 years, 1 month 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 | « tools/perf/perf_tools/memory_benchmark.py ('k') | tools/telemetry/telemetry/browser_options.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/all_page_interactions.py
diff --git a/tools/telemetry/telemetry/all_page_interactions.py b/tools/telemetry/telemetry/all_page_interactions.py
new file mode 100644
index 0000000000000000000000000000000000000000..1e7d29f797c4b6fe6ae254285bed92e586f444f4
--- /dev/null
+++ b/tools/telemetry/telemetry/all_page_interactions.py
@@ -0,0 +1,20 @@
+# Copyright (c) 2012 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 os
+
+from telemetry import discover
+from telemetry import page_interaction
+
+_page_interaction_classes = discover.Discover(os.path.dirname(__file__),
+ 'interaction',
+ page_interaction.PageInteraction)
+
+def GetAllClasses():
+ return list(_page_interaction_classes.values())
+
+def FindClassWithName(name):
+ return _page_interaction_classes.get(name)
+
+def RegisterClassForTest(name, clazz):
+ _page_interaction_classes[name] = clazz
« no previous file with comments | « tools/perf/perf_tools/memory_benchmark.py ('k') | tools/telemetry/telemetry/browser_options.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698