From 9b2bed8e412f2f8e5f9a8ec4b0f0dbf5431a113d Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 25 Mar 2022 07:42:28 -1000 Subject: [PATCH] tools: make buildtimes: show GHC codegen times --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 90212d8f3..10f0b9703 100644 --- a/Makefile +++ b/Makefile @@ -248,6 +248,10 @@ build: \ $(call def-help,build, download dependencies and build hledger executables (with stack)) $(STACK) build +buildtimes: \ + $(call def-help,buildtimes, build hledger-lib showing just the GHC codegen time and allocation for each module) + $(STACK) build hledger-lib --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep ^CodeGen + # check-setup: \ # $(call def-help,check-setup,\ # run some tests to validate the development environment\