-
CpuProfilifier()
-
Creates new CpuProfilifier
-
CpuProfilifier::convert(trace, opts) → {Object}
-
Converts the given trace taking according to the given opts.
var cpuprofilifier = require('cpuprofilifier'); var cpuprofile = cpuprofilifier().convert(trace); fs.writeFileSync('/tmp/my.cpuprofile', JSON.stringify(cpuprofile));
Parameters:
Name Type Argument Description trace
Array.<String> a trace generated via
perf script
or theprofile_1ms.d
DTrace scriptopts
Object <optional>
Properties
Name Type Description map
string a map containing symbols information, if not given it will be read from /tmp/perf-.map.
type
string type of input
perf|dtrace
. If not supplied it will be detected.shortStack
Boolean stacks that have only one line are ignored unless this flag is set
optimizationinfo
Boolean JS optimization info is removed unless this flag is set (default: false)
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:
an cpuprofile presentation of the given trace
- Type
- Object
Maintenance
Commit Frequency
Further analysis of the maintenance status of cpuprofilify based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for cpuprofilify is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.