Comparing version 1.0.6 to 2.0.0
21
cmd.js
@@ -10,25 +10,8 @@ #!/usr/bin/env node | ||
--keep-addr -k [false] | ||
--no-v8-internals --no-v8 [true] | ||
--no-sys-internals --no-sys [false] | ||
--no-gc-internals --no-gc [false] (--no-v8 must be false to apply) | ||
--no-unresolved --no-ur [false] | ||
*/ | ||
var stream = require('./')(Object.assign(args, { | ||
pid: args._[0], | ||
internal: { | ||
v8: 'v8' in args ? !args.v8 : true, | ||
sys: 'sys' in args ? !args.sys : false, | ||
gc: 'gc' in args ? !args.gc : false, | ||
ur: 'ur' in args ? !args.ur : false | ||
} | ||
}), { | ||
alias: { | ||
v8: ['v8-internals'], | ||
sys: ['sys-internals'], | ||
gc: ['no-gc-internals'], | ||
ur: ['unresolved'] | ||
} | ||
}) | ||
pid: args._[0] | ||
})) | ||
pump(process.stdin, stream, process.stdout) |
@@ -7,6 +7,3 @@ var fs = require('fs') | ||
var resolveJITSymbols = require('resolve-jit-symbols') | ||
var internal = require('./is-internal') | ||
var hexRx = /(0x[0-9A-Fa-f]{2,12})/ | ||
var frameRx = /^\w+\s+(?:LazyCompile:|Function:|Script:){0,1}(.+?)\W\(\S+\)$/ | ||
var optRx = /^\W*[*~]/ | ||
@@ -45,4 +42,2 @@ module.exports = function resolveSymbols(opts) { | ||
.replace(hexRx, (keepAddr ? '$1 ' : '') + res.symbol) | ||
.replace(optRx, '~*') | ||
.replace(frameRx, '$1') | ||
@@ -56,3 +51,3 @@ if (relative) { | ||
return internal(line, opts.internal) ? '' : line + '\n' | ||
return line + '\n' | ||
} | ||
@@ -59,0 +54,0 @@ |
{ | ||
"name": "perf-sym", | ||
"version": "1.0.6", | ||
"version": "2.0.0", | ||
"description": "Translate symbol names generated by `--basic-perf-prof` into JavaScript names", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,7 +19,2 @@ # perf-sym | ||
--keep-addr -k [false] | ||
--no-v8-internals --no-v8 [true] | ||
--no-sys-internals --no-sys [false] | ||
--no-gc-internals --no-gc [false] (--no-v8 must be false to apply) | ||
--no-unresolved --no-ur [false] | ||
``` | ||
@@ -76,3 +71,3 @@ | ||
When the load/soak test is finished, hit `CRL-C` in the terminal running | ||
When the load/soak test is finished, hit `CTRL-C` in the terminal running | ||
your application. | ||
@@ -83,3 +78,3 @@ | ||
``` | ||
cat stacks.out | perf-sym --no-sys YOURPID | stackvis perf > flamegraph.html | ||
cat stacks.out | perf-sym YOURPID | stackvis perf > flamegraph.html | ||
open flamegraph.html | ||
@@ -116,3 +111,3 @@ ``` | ||
``` | ||
cat stacks.out | perf-sym --no-sys YOURPID | stackvis perf > flamegraph.html | ||
cat stacks.out | perf-sym YOURPID | stackvis perf > flamegraph.html | ||
@@ -119,0 +114,0 @@ open flamegraph.html |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7293
7
85
126