From 9eb470680ff91a7b32b1162f579d3dc8737e24e6 Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Mon, 25 Jun 2018 15:30:14 -0400 Subject: [PATCH] Build --profile builds in a separate stack-work directory. Profiling builds are good and useful, but the fact that you have to rebuild the world when switching between profiling and and standard builds makes them too much of a timesink to actually use. This patch avoids the above effect by keeping profiling build artifacts in a `.stack-work-profiling` directory. It depends on a few other patches to ignore said directories in our vendored dependencies. To test, install `profiteur` and `hp2pretty`, run `script/profile "parse $SOME_SOURCE_FILE"`, then break for lunch. You should get nice information from the profiling system without recompiling on further `stack build` invocations. I learned this from [Matt Parsons](https://twitter.com/mattoflambda/status/997599878216802305). --- .gitignore | 1 + vendor/fastsum | 2 +- vendor/freer-cofreer | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 87bb65d71..6f122adca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store .stack-work +.stack-work-profiling profiles tags diff --git a/vendor/fastsum b/vendor/fastsum index dbeff0af5..24dc4b343 160000 --- a/vendor/fastsum +++ b/vendor/fastsum @@ -1 +1 @@ -Subproject commit dbeff0af57fcea85bca07ff5a8149301dd3b084c +Subproject commit 24dc4b343b2e3fba9310dbe638eba7c717d6b567 diff --git a/vendor/freer-cofreer b/vendor/freer-cofreer index 22164cdeb..6d94484a0 160000 --- a/vendor/freer-cofreer +++ b/vendor/freer-cofreer @@ -1 +1 @@ -Subproject commit 22164cdebd939dc9b4a21b41a5e4968f991435d1 +Subproject commit 6d94484a08f970877c4e34c9ecd9c219a7e476b5