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

Unified Diff: tools/telemetry/telemetry/internal/platform/profiler/profiler_finder.py

Issue 1263063003: Revert of Create classes_util API, change discover to return a list instead of a dict. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/internal/platform/profiler/profiler_finder.py
diff --git a/tools/telemetry/telemetry/internal/platform/profiler/profiler_finder.py b/tools/telemetry/telemetry/internal/platform/profiler/profiler_finder.py
index 58afd7577f72ae079fd176d438abe05718423d59..33c31e56bd826d4a8c90ed84c1557cc7f5bf195a 100644
--- a/tools/telemetry/telemetry/internal/platform/profiler/profiler_finder.py
+++ b/tools/telemetry/telemetry/internal/platform/profiler/profiler_finder.py
@@ -4,15 +4,16 @@
import os
+from telemetry.core import discover
from telemetry.internal.platform import profiler
from telemetry.core import util
-from telemetry.util import classes_util
def _DiscoverProfilers():
profiler_dir = os.path.dirname(__file__)
- return classes_util.DiscoverClasses(
- profiler_dir, util.GetTelemetryDir(), profiler.Profiler)
+ return discover.DiscoverClasses(profiler_dir, util.GetTelemetryDir(),
+ profiler.Profiler,
+ index_by_class_name=True).values()
def FindProfiler(name):
« no previous file with comments | « tools/telemetry/telemetry/core/platform.py ('k') | tools/telemetry/telemetry/internal/platform/tracing_controller_backend.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698