| Index: tools/tickprocessor.js
|
| diff --git a/tools/tickprocessor.js b/tools/tickprocessor.js
|
| index d54471795f6c17912f798a5b20e0acb6c95a4f0e..05f42076bd97ffaf010f2251145bb6abb6973ad5 100644
|
| --- a/tools/tickprocessor.js
|
| +++ b/tools/tickprocessor.js
|
| @@ -154,7 +154,8 @@ function TickProcessor(
|
| snapshotLogProcessor,
|
| distortion,
|
| range,
|
| - sourceMap) {
|
| + sourceMap,
|
| + timedRange) {
|
| LogReader.call(this, {
|
| 'shared-library': { parsers: [null, parseInt, parseInt],
|
| processor: this.processSharedLibrary },
|
| @@ -187,10 +188,12 @@ function TickProcessor(
|
| 'function-move': null,
|
| 'function-delete': null,
|
| 'heap-sample-item': null,
|
| + 'current-time': null, // Handled specially, not parsed.
|
| // Obsolete row types.
|
| 'code-allocate': null,
|
| 'begin-code-region': null,
|
| - 'end-code-region': null });
|
| + 'end-code-region': null },
|
| + timedRange);
|
|
|
| this.cppEntriesProvider_ = cppEntriesProvider;
|
| this.callGraphSize_ = callGraphSize;
|
| @@ -292,7 +295,7 @@ TickProcessor.prototype.isCppCode = function(name) {
|
|
|
|
|
| TickProcessor.prototype.isJsCode = function(name) {
|
| - return !(name in this.codeTypes_);
|
| + return name !== "UNKNOWN" && !(name in this.codeTypes_);
|
| };
|
|
|
|
|
| @@ -875,7 +878,9 @@ function ArgumentsProcessor(args) {
|
| '--distortion': ['distortion', 0,
|
| 'Specify the logging overhead in picoseconds'],
|
| '--source-map': ['sourceMap', null,
|
| - 'Specify the source map that should be used for output']
|
| + 'Specify the source map that should be used for output'],
|
| + '--timed-range': ['timedRange', true,
|
| + 'Ignore ticks before first and after last Date.now() call']
|
| };
|
| this.argsDispatch_['--js'] = this.argsDispatch_['-j'];
|
| this.argsDispatch_['--gc'] = this.argsDispatch_['-g'];
|
| @@ -896,7 +901,8 @@ ArgumentsProcessor.DEFAULTS = {
|
| targetRootFS: '',
|
| nm: 'nm',
|
| range: 'auto,auto',
|
| - distortion: 0
|
| + distortion: 0,
|
| + timedRange: false
|
| };
|
|
|
|
|
|
|