浏览代码

Merge pull request #8360 from GordonSmith/HPCC-15090

HPCC-15090 Simplify Timing Map Labels

Reviewed-By: Miguel Vazquez <miguel.vazquez@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 年之前
父节点
当前提交
ddf4bf00cc
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      esp/src/eclwatch/TimingTreeMapWidget.js

+ 4 - 2
esp/src/eclwatch/TimingTreeMapWidget.js

@@ -211,7 +211,9 @@ define([
                     this.stdDev = Math.sqrt(variance);
                     for (var i = 0; i < timers.length; ++i) {
                         var prefix = "other";
-                        if (timers[i].Name.indexOf("Graph graph") == 0) {
+                        timers[i].__hpcc_name = timers[i].Name;
+                        if (timers[i].Name.indexOf("Graph graph") === 0) {
+                            timers[i].__hpcc_name = timers[i].SubGraphId;
                             if (!timers[i].SubGraphId) {
                                 continue;
                             }
@@ -251,7 +253,7 @@ define([
                     };
                 });
                 this.treeMap.set("groupAttrs", ["__hpcc_prefix"]);
-                this.treeMap.set("labelAttr", "Name");
+                this.treeMap.set("labelAttr", "__hpcc_name");
                 this.treeMap.set("tooltipFunc", function (item) {
                     return item.Name + " " + item.Seconds;
                 });