File: v8_trace

package info (click to toggle)
node-escodegen 1.11.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,528 kB
  • sloc: makefile: 23; sh: 13
file content (18 lines) | stat: -rwxr-xr-x 388 bytes parent folder | download | duplicates (6)
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"