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

Unified Diff: tracing/tracing/metrics/tracing_metric.html

Issue 2710093005: Rename tracingMetric histograms to hacker_style. (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 | « no previous file | tracing/tracing/metrics/tracing_metric_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/metrics/tracing_metric.html
diff --git a/tracing/tracing/metrics/tracing_metric.html b/tracing/tracing/metrics/tracing_metric.html
index 898fe806e4cfa0ee9bb569b9ef5ed9df0d963960..21866bcc91a700e12d7145668cb16799f4893203 100644
--- a/tracing/tracing/metrics/tracing_metric.html
+++ b/tracing/tracing/metrics/tracing_metric.html
@@ -25,11 +25,13 @@ tr.exportTo('tr.metrics', function() {
var COUNT_BOUNDARIES = tr.v.HistogramBinBoundaries.createExponential(
1, 1e5, 30);
- function addTimeDurationHistogram(histogramName, duration, histograms) {
+ function addTimeDurationHistogram(
+ histogramName, duration, histograms, opt_description) {
var hist = new tr.v.Histogram(histogramName,
tr.b.Unit.byName.timeDurationInMs_smallerIsBetter, TIME_BOUNDARIES);
hist.addSample(duration);
histograms.addHistogram(hist);
+ if (opt_description) hist.description = opt_description;
}
// Adds histograms specific to memory-infra dumps.
@@ -65,29 +67,36 @@ tr.exportTo('tr.metrics', function() {
});
addTimeDurationHistogram(
- 'Average CPU overhead on all threads per memory-infra dump',
- totalOverhead / memoryDumpCount, histograms);
+ 'memory_dump_cpu_overhead',
+ totalOverhead / memoryDumpCount, histograms,
+ 'Average CPU overhead on all threads per memory-infra dump');
addTimeDurationHistogram(
+ 'nonmemory_thread_memory_dump_cpu_overhead',
+ nonMemoryInfraThreadOverhead / memoryDumpCount, histograms,
'Average CPU overhead on non-memory-infra threads per memory-infra ' +
- 'dump',
- nonMemoryInfraThreadOverhead / memoryDumpCount, histograms);
+ 'dump');
tr.b.iterItems(overheadByProvider, function(providerName, overhead) {
addTimeDurationHistogram(
- 'Average CPU overhead of ' + providerName + ' per OnMemoryDump call',
- overhead.duration / overhead.count, histograms);
+ providerName + '_memory_dump_cpu_overhead',
charliea (OOO until 10-5) 2017/02/23 20:21:57 nit: this might be a good candidate for a template
+ overhead.duration / overhead.count, histograms,
+ 'Average CPU overhead of ' + providerName + ' per OnMemoryDump call');
});
var memoryInfraEventsSize =
categoryNamesToTotalEventSizes.get(MEMORY_INFRA_TRACING_CATEGORY);
var memoryInfraTraceBytesValue = new tr.v.Histogram(
- 'Total trace size of memory-infra dumps in bytes',
+ 'total_memory_dump_size',
tr.b.Unit.byName.sizeInBytes_smallerIsBetter, BYTE_BOUNDARIES);
+ memoryInfraTraceBytesValue.description =
+ 'Total trace size of memory-infra dumps in bytes';
charliea (OOO until 10-5) 2017/02/23 20:21:57 nit: this should be indented by four spaces instea
memoryInfraTraceBytesValue.addSample(memoryInfraEventsSize);
histograms.addHistogram(memoryInfraTraceBytesValue);
var traceBytesPerDumpValue = new tr.v.Histogram(
- 'Average trace size of memory-infra dumps in bytes',
+ 'memory_dump_size',
tr.b.Unit.byName.sizeInBytes_smallerIsBetter, BYTE_BOUNDARIES);
+ traceBytesPerDumpValue.description =
+ 'Average trace size of memory-infra dumps in bytes',
traceBytesPerDumpValue.addSample(memoryInfraEventsSize / memoryDumpCount);
histograms.addHistogram(traceBytesPerDumpValue);
}
@@ -164,16 +173,18 @@ tr.exportTo('tr.metrics', function() {
var categoryWithMaxEventBytes = maxCatNameAndBytes[0];
var maxEventCountPerSecValue = new tr.v.Histogram(
- 'Max number of events per second',
- tr.b.Unit.byName.count_smallerIsBetter, COUNT_BOUNDARIES);
+ 'peak_event_rate', tr.b.Unit.byName.count_smallerIsBetter,
+ COUNT_BOUNDARIES);
+ maxEventCountPerSecValue.description = 'Max number of events per second';
maxEventCountPerSecValue.addSample(maxEventCountPerSec);
var maxEventBytesPerSecValue = new tr.v.Histogram(
- 'Max event size in bytes per second',
- tr.b.Unit.byName.sizeInBytes_smallerIsBetter, BYTE_BOUNDARIES);
+ 'peak_event_size_rate', tr.b.Unit.byName.sizeInBytes_smallerIsBetter,
+ BYTE_BOUNDARIES);
+ maxEventBytesPerSecValue.description = 'Max event size in bytes per second';
maxEventBytesPerSecValue.addSample(maxEventBytesPerSec);
- var totalTraceBytesValue = new tr.v.Histogram('Total trace size in bytes',
+ var totalTraceBytesValue = new tr.v.Histogram('trace_size',
tr.b.Unit.byName.sizeInBytes_smallerIsBetter, BYTE_BOUNDARIES);
totalTraceBytesValue.addSample(totalTraceBytes);
« no previous file with comments | « no previous file | tracing/tracing/metrics/tracing_metric_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698