Express middleware that exposes pprof endpoints for easy profiling
npm install express-pprof-middleware
npm i -S express-pprof-middleware
`Supported Profiles
* Heap
* Wall TimeUsage
`js
const pprof = require('express-pprof-middleware');const app = express();
app.use(pprof);
`$3
`
curl http://localhost:8000/debug/pprof/heap -o heap.pb.gz
`$3
`
curl http://localhost:8000/debug/pprof/wall?seconds=5 -o wall.pb.gz
`Viewing Profiles
Full details on the pprof tool here: https://github.com/google/pprof
$3
`
go install github.com/google/pprof@latest
`$3
`
pprof -web heap.gz
`$3
`
pprof -http=":" heap.gz
``