From 3299835bfebe8527cfa8ee8137c3708dccae5baa Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 19 Jun 2025 11:48:18 -0700 Subject: Add instructions for profiling --- .gitignore | 3 +++ README.md | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/.gitignore b/.gitignore index 726ea43..769d15f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +*.eventlog* +*.hp +cabal.project.local demos/pong/dist/ demos/pong/pong dist/ diff --git a/README.md b/README.md index 45eb2a2..1cf42dc 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,23 @@ Run a demo: $ cabal run pong ``` +Profiling +--------- + +Build with profiling enabled: + +``` +cabal clean +cabal configure --enable-profiling +cabal build +``` + +Then run to collect statistics (below is just an example): + +``` +cabal run balls -- +RTS -hc -l -sstderr +``` + Features -------- -- cgit v1.2.3