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

Side by Side Diff: tracing/tracing/ui/analysis/power_sample_summary_table.html

Issue 2995843002: Merge iteration_helpers into utils.html. (Closed)
Patch Set: rebase Created 3 years, 4 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2015 The Chromium Authors. All rights reserved. 3 Copyright 2015 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/iteration_helpers.html">
9 <link rel="import" href="/tracing/base/unit.html"> 8 <link rel="import" href="/tracing/base/unit.html">
10 <link rel="import" href="/tracing/base/unit_scale.html"> 9 <link rel="import" href="/tracing/base/unit_scale.html">
10 <link rel="import" href="/tracing/base/utils.html">
11 <link rel="import" href="/tracing/model/event_set.html"> 11 <link rel="import" href="/tracing/model/event_set.html">
12 <link rel="import" href="/tracing/ui/base/table.html"> 12 <link rel="import" href="/tracing/ui/base/table.html">
13 13
14 <dom-module id='tr-ui-a-power-sample-summary-table'> 14 <dom-module id='tr-ui-a-power-sample-summary-table'>
15 <template> 15 <template>
16 <style> 16 <style>
17 tr-ui-b-table { 17 tr-ui-b-table {
18 font-size: 12px; 18 font-size: 12px;
19 } 19 }
20 </style> 20 </style>
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 getEnergyConsumedInJ() { 127 getEnergyConsumedInJ() {
128 if (this.samples.length < 2) return 'N/A'; 128 if (this.samples.length < 2) return 'N/A';
129 129
130 const bounds = this.samples.bounds; 130 const bounds = this.samples.bounds;
131 const series = tr.b.getFirstElement(this.samples).series; 131 const series = tr.b.getFirstElement(this.samples).series;
132 return series.getEnergyConsumedInJ(bounds.min, bounds.max); 132 return series.getEnergyConsumedInJ(bounds.min, bounds.max);
133 } 133 }
134 }); 134 });
135 </script> 135 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/analysis/multi_power_sample_sub_view.html ('k') | tracing/tracing/ui/analysis/related_events_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698