File: profile.sh

package info (click to toggle)
node-lru-cache 10.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: javascript: 546; sh: 90; makefile: 15
file content (9 lines) | stat: -rw-r--r-- 206 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

mkdir -p profiles
rm -f isolate-*.log profile.txt
N=1000000 node --prof worker.js
d=profiles/$(date +%s)
node --prof-process isolate-*.log > $d
ln ${PWD}/$d profile.txt
cat profile.txt