Skip to content

Commit f3c7f30

Browse files
qiuminxujart
authored andcommitted
Improve the op_profile response time by offloading table sorting to trace generation (#714)
1 parent 9548f54 commit f3c7f30

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tensorboard/plugins/profile/tf_op_profile/tf-op-table.html

+1-6
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
{{_utilization(node)}}</span>
214214
</div>
215215
<template is="dom-if" if="[[expanded]]">
216-
<template is="dom-repeat" items="{{node.children}}" sort="_sortEntry">
216+
<template is="dom-repeat" items="{{node.children}}">
217217
<tf-op-table-entry
218218
node="[[item]]"
219219
level={{_nextLevel(level)}}
@@ -263,11 +263,6 @@
263263
_eq: function(x, y) {
264264
return x == y;
265265
},
266-
_sortEntry: function(left, right) {
267-
var leftTime = left.metrics ? left.metrics.time : 0;
268-
var rightTime = right.metrics ? right.metrics.time : 0;
269-
return rightTime - leftTime;
270-
},
271266
_nextLevel: function(level) { return level + 1; },
272267
_handleHeaderClick: function(e) {
273268
this.expanded ^= true;

0 commit comments

Comments
 (0)