Index: tools/profview/profview.js |
diff --git a/tools/profview/profview.js b/tools/profview/profview.js |
index aefdcd6e0cd446b949ed35bf79fbf545f39b1938..033d0f385e9df21f49dac39edc5c212c45e720ef 100644 |
--- a/tools/profview/profview.js |
+++ b/tools/profview/profview.js |
@@ -526,7 +526,8 @@ class CallTreeView { |
case "top-down": |
addOptions(this.selectAttribution, attributions, calltree.attribution); |
addOptions(this.selectCategories, [ |
- { value : "none", text : "None" } |
+ { value : "none", text : "None" }, |
+ { value : "rt-entry", text : "Runtime entries" } |
], calltree.categories); |
addOptions(this.selectSort, [ |
{ value : "time", text : "Time (including children)" }, |
@@ -605,8 +606,13 @@ class CallTreeView { |
let stackProcessor; |
let filter = filterFromFilterId(this.currentState.callTree.attribution); |
if (mode === "top-down") { |
- stackProcessor = |
- new PlainCallTreeProcessor(filter, false); |
+ if (this.currentState.callTree.categories === "rt-entry") { |
+ stackProcessor = |
+ new RuntimeCallTreeProcessor(); |
+ } else { |
+ stackProcessor = |
+ new PlainCallTreeProcessor(filter, false); |
+ } |
} else if (mode === "function-list") { |
stackProcessor = new FunctionListTree( |
filter, this.currentState.callTree.categories === "code-type"); |