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

Unified Diff: Source/devtools/front_end/CPUProfileView.js

Issue 14234008: DevTools: Rename (program) to (native) in CPU profiler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CPUProfileView.js
diff --git a/Source/devtools/front_end/CPUProfileView.js b/Source/devtools/front_end/CPUProfileView.js
index 3598b6b141aa9e93e5a1d0d9233baa354b63b28e..0d06c73da23d178420a44189ce4db87beca62859 100644
--- a/Source/devtools/front_end/CPUProfileView.js
+++ b/Source/devtools/front_end/CPUProfileView.js
@@ -593,7 +593,8 @@ WebInspector.CPUProfileView.prototype = {
var programNode = {selfTime: 0};
for (var i = nodes.length - 1; i >= 0; --i) {
- if (nodes[i].functionName === "(program)") {
+ // TODO(alph): Remove (program) after corresponding V8 revision arrives.
+ if (nodes[i].functionName === "(program)" || nodes[i].functionName === "(native)") {
programNode = nodes[i];
break;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698