File: v8_trace

package info (click to toggle)
node-escodegen 2.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,656 kB
  • sloc: javascript: 25,925; sh: 9; makefile: 7
file content (18 lines) | stat: -rwxr-xr-x 388 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

OUT_DIR="v8_trace_reports"

rm -rf "$OUT_DIR"
mkdir -p "$OUT_DIR"

echo "Here we go..."

LOG=$(node --trace-opt --trace-inlining --trace-deopt trace_cycle)

echo "$LOG" | grep "disabled optimization for" > "$OUT_DIR/never_optimized.log"
echo "$LOG" | grep "Did not inline" > "$OUT_DIR/not_inlined.log"
echo "$LOG" | grep "DEOPT" > "$OUT_DIR/deoptimizations.log"

echo "Done"