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

Unified Diff: tracing/tracing/value/ui/histogram_set_table_row.html

Issue 2508643002: Convert Histograms to CSV. (Closed)
Patch Set: simplify test Created 4 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 | « tracing/tracing/value/ui/histogram_set_table.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/histogram_set_table_row.html
diff --git a/tracing/tracing/value/ui/histogram_set_table_row.html b/tracing/tracing/value/ui/histogram_set_table_row.html
index ac64ed0411d22b78e32b9a1e6b87d835d702f565..ce82c8d152a9dfa82b780e71802eef2f31bfc89f 100644
--- a/tracing/tracing/value/ui/histogram_set_table_row.html
+++ b/tracing/tracing/value/ui/histogram_set_table_row.html
@@ -141,6 +141,18 @@ tr.exportTo('tr.v.ui', function() {
return this.overviewDataRange_;
}
+ getLeafHistograms(histograms) {
+ if (this.subRows.length === 0) {
+ for (var [displayLabel, hist] of this.columns) {
+ histograms.addHistogram(hist);
+ }
+ return;
+ }
+ for (var subRow of this.subRows) {
+ subRow.getLeafHistograms(histograms);
+ }
+ }
+
compareNames(other) {
return this.name.localeCompare(other.name);
}
« no previous file with comments | « tracing/tracing/value/ui/histogram_set_table.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698