Skip to content

Commit 381b22c

Browse files
Remove pre-allocation in benchmarking (#1593)
By not pre-allocating we gather more information that is useful in debugging. Resolves #1592.
1 parent 8c3ba67 commit 381b22c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ check: ./$(SOURCE_DIR)/everything.lagda.md
103103
check-profile: $(SOURCE_DIR)/everything.lagda.md
104104
@# Remove cached build data
105105
@rm -Rf ./$(AGDA_BUILD)/
106-
${AGDA} ${AGDAPROFILEFLAGS} $<
106+
@# Call agda directly to circumvent pre-allocation of heap
107+
@agda +RTS -M8G -RTS ${AGDAPROFILEFLAGS} $<
107108

108109
# Convert module path to directory path (replace dots with slashes)
109110
MODULE_DIR = $(subst .,/,$(MODULE))

0 commit comments

Comments
 (0)