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

Unified Diff: tracing/tracing_project.py

Issue 2656493002: Register metric Histogram names. (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « tracing/tracing/ui/side_panel/metrics_side_panel_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing_project.py
diff --git a/tracing/tracing_project.py b/tracing/tracing_project.py
index 38b5225895451ec09ac84da569f9f2be4dc45d79..84b055fd6bfb583a19b34822ba49924d16e4c9d7 100644
--- a/tracing/tracing_project.py
+++ b/tracing/tracing_project.py
@@ -36,6 +36,13 @@ def _FindAllFilesRecursive(source_paths):
all_filenames.add(x)
return all_filenames
+
+def _IsFilenameACmdline(x):
+ if x.endswith('_cmdline.html'):
+ return True
+ return False
+
+
def _IsFilenameATest(x):
if x.endswith('_test.js'):
return True
@@ -145,7 +152,8 @@ class TracingProject(object):
all_filenames = _FindAllFilesRecursive([self.tracing_src_path])
all_metrics_module_filenames = []
for x in all_filenames:
- if x.startswith(self.metrics_path) and not _IsFilenameATest(x):
+ if (x.startswith(self.metrics_path) and not _IsFilenameATest(x) and
+ not _IsFilenameACmdline(x)):
all_metrics_module_filenames.append(x)
all_metrics_module_filenames.sort()
return [os.path.relpath(x, self.tracing_root_path)
« no previous file with comments | « tracing/tracing/ui/side_panel/metrics_side_panel_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698