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

Side by Side Diff: tracing/tracing/metrics/all_histogram_names_cmdline.html

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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
3 Copyright 2017 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7
8 <link rel="import" href="/tracing/metrics/all_metrics.html">
9
10 <script>
11 'use strict';
12
13 if (tr.isHeadless) {
14 var metricNames = new Set(sys.argv.slice(1));
15 var histogramNames = [];
16 for (var typeInfo of tr.metrics.MetricRegistry.getAllRegisteredTypeInfos()) {
17 if (metricNames.has(typeInfo.constructor.name)) {
18 histogramNames.push(...typeInfo.metadata.histogramNames);
19 }
20 }
21 console.log(JSON.stringify(histogramNames));
22 }
23 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/metrics/all_histogram_names.py ('k') | tracing/tracing/metrics/blink/gc_metric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698