Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Translate symbol names generated by --basic-perf-prof
into JavaScript names.
You can use this tool to generate Flamegraphs on OSX and Linux.
[sudo] npm i -g perf-sym stackvis
cat stacks.out | perf-sym <pid>
--relative=[path] -r=[path] [false]
--keep-addr -k [false]
Your process needs to shut down properly to generate the symbol map, so instrument it with:
console.error('process.pid', process.pid)
// Cleanly shut down process on SIGINT to ensure that perf-<pid>.map gets flushed
process.on('SIGINT', onSIGINT)
function onSIGINT () {
// IMPORTANT to log on stderr, to not clutter stdout which is purely for data, i.e. dtrace stacks
console.error('Caught SIGINT, shutting down.')
// close any servers you have opened
server.close()
// clean exit
process.exit(0)
}
Run your application, in one terminal:
node --perf-basic-prof index.js
# this should emit the PID of the process to stdout
In another terminal, run:
sudo profile_1ms.d -p YOURPID > stacks.out
In another terminal, run a load/soak test:
wrk -c 100 -d 10 http://localhost:3000
When the load/soak test is finished, hit CTRL-C
in the terminal running
your application.
now run:
cat stacks.out | perf-sym YOURPID | stackvis perf > flamegraph.html
open flamegraph.html
Run your application, in one terminal:
node --perf-basic-prof index.js
# this should emit the PID of the process to stdout
In another terminal, run:
perf record -p YOURPID -i -g -e cycles:u; perf script > stacks.out
In another terminal, run a load/soak test:
wrk -c 100 -d 10 http://localhost:3000
When the load/soak test is finished, hit CRL-C
in the terminal running
your application.
now run:
cat stacks.out | perf-sym YOURPID | stackvis perf > flamegraph.html
open flamegraph.html
MIT
FAQs
Translate symbol names generated by `--basic-perf-prof` into JavaScript names
The npm package perf-sym receives a total of 7,186 weekly downloads. As such, perf-sym popularity was classified as popular.
We found that perf-sym demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.