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
I think it should be dump-cpp-symbols and the desc
|
+ '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: '', |