A playground for perf command and flamegraph with Node.js and Docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.dockerignore
.gitignore
.gitmodules
Dockerfile
Dockerfile.alpine
Dockerfile.node10
README.md
flame.sh
index.js
package-lock.json
package.json
symbols.js

README.md

perf-playground

A playground for perf(1) and FlameGraph with Node.js and Docker

The way to make FlameGraph for a process in Docker container is based on Making FlameGraphs with Containerized Java.

Prepare

sudo apt-get install linux-tools-common linux-tools-$(uname -r)

Try

npm install

# Build a Docker image and run it in the background
npm run build-node8
npm run start-node8
# or
npm run build-node10
npm run start-node10
# or
npm run build-alpine
npm run start-alpine

# Generate a flame graph
./flame.sh