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

Unified Diff: tools/tickprocessor.js

Issue 1884493003: Dump C++ symbols and merge into v8 log. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/profile.js ('k') | tools/tickprocessor-driver.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/tickprocessor.js
diff --git a/tools/tickprocessor.js b/tools/tickprocessor.js
index 7d07bf6c558a37a63e27e318bebbd9f89efa57d9..3bbb6234f5950103aa63585a049964e57fc5aed0 100644
--- a/tools/tickprocessor.js
+++ b/tools/tickprocessor.js
@@ -430,6 +430,18 @@ TickProcessor.prototype.printStatistics = function() {
};
+TickProcessor.prototype.dumpCppEntries = function() {
+ var staticEntries = this.profile_.getAllStaticEntries();
+ var total = staticEntries.length;
+ for (var i = 0; i < total; ++i) {
+ var entry = staticEntries[i];
+ var printValues = ['cpp', '0x' + entry[0].toString(16), entry[1].size,
+ '"' + entry[1].name + '"'];
+ print(printValues.join(','));
+ }
+};
+
+
function padLeft(s, len) {
s = s.toString();
if (s.length < len) {
@@ -779,6 +791,8 @@ function ArgumentsProcessor(args) {
'Show only ticks from EXTERNAL VM state'],
'--call-graph-size': ['callGraphSize', TickProcessor.CALL_GRAPH_SIZE,
'Set the call graph size'],
+ '--dump-cpp': ['dumpCppEntries', true,
fmeawad 2016/04/14 11:42:50 All the other args manipulate the current output a
+ 'Dump C++ Entries'],
'--ignore-unknown': ['ignoreUnknown', true,
'Exclude ticks of unknown code entries from processing'],
'--separate-ic': ['separateIc', true,
@@ -820,6 +834,7 @@ ArgumentsProcessor.DEFAULTS = {
platform: 'unix',
stateFilter: null,
callGraphSize: 5,
+ dumpCppEntries: false,
ignoreUnknown: false,
separateIc: false,
targetRootFS: '',
« no previous file with comments | « tools/profile.js ('k') | tools/tickprocessor-driver.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698