trace-filter-internals
Filters internal functions from a given trace.
Last updated 6 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install trace-filter-internals 
SYNC missed versions from official npm registry.

trace-filter-internals build status

testling badge

Filters internal functions from a given trace.

var filter = require('trace-filter-internals);
var filtered = filter(trace.split('\n');

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)

Source:
Returns:

lines that passed through the filter

Type
Array.<string>

generated with docme

License

MIT

Current Tags

  • 0.1.0                                ...           latest (6 years ago)

1 Versions

  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2017 © taobao.org |