Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 601 Bytes

File metadata and controls

16 lines (11 loc) · 601 Bytes
docker run --rm -it --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword postgres
docker exec -it some-postgres psql -U postgres
git clone https://github.com/brendangregg/FlameGraph.git

sed -i 's|#!/usr/bin/perl -w|#!/usr/bin/env perl|' FlameGraph/stackcollapse-perf.pl
sed -i 's|#!/usr/bin/perl -w|#!/usr/bin/env perl|' FlameGraph/flamegraph.pl

perf record -F 99 -g ./build-release/bin/benchmarks --benchmark_filter="BM_SQL<CachedJitCompiledExpressionExecutor.*"

perf script | FlameGraph/stackcollapse-perf.pl | FlameGraph/flamegraph.pl > benchmarks/flamegraph-jit.svg