trace-filter-internals
Filters internal functions from a given trace.
var filter =
Installation
npm install trace-filter-internals
API
-
filterInternals(lines, opts) → {Array.<string>}
-
Filters all internals specified via opts from the given lines.
Parameters:
Name Type Argument Description lines
Array.<string> to filter lines from that have internals
opts
Object <optional>
specify which kind of internals to keep
Properties
Name Type Description unresolveds
Boolean unresolved addresses like
0x1a23c
are filtered from the trace unless this flag is set (default: false)sysinternals
Boolean sysinternals like
__lib_c_start...
are filtered from the trace unless this flag is set (default: false)v8internals
Boolean v8internals like
v8::internal::...
are filtered from the trace unless this flag is set (default: false)v8gc
Boolean when v8internals are filtered, garbage collection info is as well unless this flag set (default: true)
Returns:
lines that passed through the filter
- Type
- Array.<string>
generated with docme
License
MIT