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

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

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 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
« no previous file with comments | « tracing/tracing/value/ui/histogram_span_test.html ('k') | tracing/tracing/value/ui/numeric_stats_span.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/ui/iteration_info_span.html
diff --git a/tracing/tracing/value/ui/iteration_info_span.html b/tracing/tracing/value/ui/iteration_info_span.html
new file mode 100644
index 0000000000000000000000000000000000000000..aa25b08aa0943d8f5526b04a0938a26247725bb7
--- /dev/null
+++ b/tracing/tracing/value/ui/iteration_info_span.html
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<!--
+Copyright 2016 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<link rel="import" href="/tracing/ui/base/table.html">
+
+<dom-module id="tr-v-ui-iteration-info-span">
+ <template>
+ <tr-ui-b-table id="table"></tr-ui-b-table>
+ </template>
+</dom-module>
+<script>
+'use strict';
+Polymer({
+ is: 'tr-v-ui-iteration-info-span',
+
+ ready: function() {
+ this.diagnostic_ = undefined;
+ this.$.table.showHeader = false;
+ this.$.table.tableColumns = [
+ {
+ value: function(row) {
+ return row[0];
+ },
+ },
+ {
+ value: function(row) {
+ return row[1];
+ }
+ }
+ ];
+ },
+
+ get diagnostic() {
+ return this.diagnostic_;
+ },
+
+ set diagnostic(d) {
+ this.diagnostic_ = d;
+ this.updateContents_();
+ },
+
+ updateContents_: function() {
+ if (this.diagnostic === undefined) {
+ this.$.table.tableRows = [];
+ return;
+ }
+
+ var rows = [
+ ['benchmark name', this.diagnostic.benchmarkName],
+ ['benchmark start', this.diagnostic.benchmarkStartString],
+ ['url', this.diagnostic.storyUrl],
+ ['story', this.diagnostic.storyDisplayName],
+ ['storyset repeat', this.diagnostic.storysetRepeatCounter],
+ ['story repeat', this.diagnostic.storyRepeatCounter],
+ ];
+
+ if (this.diagnostic.label)
+ rows.push(['label', this.diagnostic.label]);
+
+ if (this.diagnostic.storyGroupingKeys &&
+ (tr.b.dictionaryLength(this.diagnostic.storyGroupingKeys) > 0)) {
+ var gov = document.createElement('tr-ui-a-generic-object-view');
+ gov.object = this.diagnostic.storyGroupingKeys;
+ rows.push(['grouping keys', gov]);
+ }
+
+ rows.sort((x, y) => x[0].localeCompare(y[0]));
+ this.$.table.tableRows = rows;
+ }
+});
+</script>
« no previous file with comments | « tracing/tracing/value/ui/histogram_span_test.html ('k') | tracing/tracing/value/ui/numeric_stats_span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698