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

Unified Diff: tools/profview/profview.js

Issue 2811953003: [profview] Add runtime-entry top-down tree. (Closed)
Patch Set: Created 3 years, 8 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 | « tools/profview/profile-utils.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « tools/profview/profile-utils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698