Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

perf-sym

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

perf-sym

Translate symbol names generated by `--basic-perf-prof` into JavaScript names

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.7K
increased by19.58%
Maintainers
1
Weekly downloads
 
Created
Source

perf-sym

Translate symbol names generated by --basic-perf-prof into JavaScript names

Install

[sudo] npm i -g perf-sym

Usage

  cat stacks.out | perf-sym <pid>

  --relative=[path] -r=[path] [false]
  --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]

Generate a flamegraph

OS X

Requirements
[sudo] npm install -g stackvis
[sudo] npm install -g cpuprofilify
sudo echo # need me some sudo perms

node --perf-basic-prof index.js &

export PID=$!

(sudo profile_1ms.d -p $PID  > stacks.out; kill -s INT $PID) &

npm test

sudo killall dtrace

cat stacks.out | perf-sym -r initial --no-sys $PID | stackvis perf > flamegraph.html

open flamegraph.html

Linux

Requirements
[sudo] npm install -g stackvis
node --perf-basic-prof index.js &

export PID=$!

(perf record -p $PID -i -g -e cycles:u; perf script > stacks.out; kill -s INT $PID) &

npm test

killall perf; killall perf

cat stacks.out | perf-sym -r initial --no-sys $PID | stackvis perf > flamegraph.html

open flamegraph.html

FAQs

Package last updated on 14 Feb 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc