| Index: tools/tickprocessor.js
|
| diff --git a/tools/tickprocessor.js b/tools/tickprocessor.js
|
| index 05a3369255e4c14c0827a505023be13a618408da..2e7b5560dab08d9a29739e2d3d7bd78cdf59cd4b 100644
|
| --- a/tools/tickprocessor.js
|
| +++ b/tools/tickprocessor.js
|
| @@ -608,10 +608,11 @@ CppEntriesProvider.prototype.parseNextLine = function() {
|
| };
|
|
|
|
|
| -function UnixCppEntriesProvider(nmExec) {
|
| +function UnixCppEntriesProvider(nmExec, targetRootFS) {
|
| this.symbols = [];
|
| this.parsePos = 0;
|
| this.nmExec = nmExec;
|
| + this.targetRootFS = targetRootFS;
|
| this.FUNC_RE = /^([0-9a-fA-F]{8,16}) ([0-9a-fA-F]{8,16} )?[tTwW] (.*)$/;
|
| };
|
| inherits(UnixCppEntriesProvider, CppEntriesProvider);
|
| @@ -619,6 +620,7 @@ inherits(UnixCppEntriesProvider, CppEntriesProvider);
|
|
|
| UnixCppEntriesProvider.prototype.loadSymbols = function(libName) {
|
| this.parsePos = 0;
|
| + libName = this.targetRootFS + libName;
|
| try {
|
| this.symbols = [
|
| os.system(this.nmExec, ['-C', '-n', '-S', libName], -1, -1),
|
| @@ -785,6 +787,8 @@ function ArgumentsProcessor(args) {
|
| 'Specify that we are running on Mac OS X platform'],
|
| '--nm': ['nm', 'nm',
|
| 'Specify the \'nm\' executable to use (e.g. --nm=/my_dir/nm)'],
|
| + '--target': ['targetRootFS', '',
|
| + 'Specify the target root directory for cross environment'],
|
| '--snapshot-log': ['snapshotLogFileName', 'snapshot.log',
|
| 'Specify snapshot log file to use (e.g. --snapshot-log=snapshot.log)']
|
| };
|
| @@ -804,6 +808,7 @@ ArgumentsProcessor.DEFAULTS = {
|
| callGraphSize: 5,
|
| ignoreUnknown: false,
|
| separateIc: false,
|
| + targetRootFS: '',
|
| nm: 'nm'
|
| };
|
|
|
|
|