hasql/profile-events
2017-04-14 00:49:33 +03:00

10 lines
329 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
cabal build profiling --ghc-options="-eventlog"
cd dist
build/profiling/profiling simple +RTS -N2 -ls -RTS
ghc-events-analyze --timed --bucket-width 2 --bucket-height 14 --ms --tick-every 10 --buckets 500 --window Session profiling.eventlog
open profiling.0.timed.svg
threadscope profiling.eventlog