cpuprofilify
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -117,8 +117,4 @@ 'use strict'; | ||
proto._filterInternals = function _filterInternals() { | ||
if (this._converterCtr.proto.type === 'instruments') { | ||
this.emit('warn', 'Filtering internals is not supported for Instrument callgraphs at this point'); | ||
this._filtered = this._trace; | ||
} else { | ||
this._filtered = filterInternals(this._trace, this._opts); | ||
} | ||
this._filtered = this._trace; | ||
this._filtered = filterInternals(this._trace, this._opts); | ||
this._filteredLen = this._filtered.length; | ||
@@ -125,0 +121,0 @@ |
@@ -68,8 +68,11 @@ 'use strict'; | ||
stackFrame = this._stack[i]; | ||
parent = this.findOrCreateNode( | ||
parent | ||
, this._id | ||
, this._stack[i] | ||
); | ||
this._id = Math.max(parent.id + 1, this._id); | ||
// ignore empty frames which occur due to internals filtering | ||
if (stackFrame) { | ||
parent = this.findOrCreateNode( | ||
parent | ||
, this._id | ||
, this._stack[i] | ||
); | ||
this._id = Math.max(parent.id + 1, this._id); | ||
} | ||
} | ||
@@ -76,0 +79,0 @@ |
{ | ||
"name": "cpuprofilify", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Converts output of various profiling/sampling tools to the .cpuprofile format so it can be loaded into Chrome DevTools.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29
317730
10450
5