]> git.llucax.com Git - software/dgc/dgcbench.git/commitdiff
Tell the programs to collect statistics
authorLeandro Lucarella <llucax@gmail.com>
Sat, 19 Sep 2009 20:51:31 +0000 (17:51 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sat, 19 Sep 2009 20:51:31 +0000 (17:51 -0300)
Pass the environment variable D_GC_STATS=1 to programs when running them
to tell them to collect GC statistics, just in case the collector don't
do it by default and understand the meaning of the environment variable.

Makefile

index 359f0a7ca156506b727a1a3b5bcbbc8bec7d04f9..574eeb03760a3bccfaf153993c614bced583d0b1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,7 @@ $O/%: %.d
 
 .PRECIOUS: $O/%.c.csv $O/%.a.csv
 $O/%.c.csv $O/%.a.csv: $O/%
 
 .PRECIOUS: $O/%.c.csv $O/%.a.csv
 $O/%.c.csv $O/%.a.csv: $O/%
-       $(P_RUN) ./$< $(args)
+       $(P_RUN) D_GC_STATS=1 ./$< $(args)
        $P mv gc-collections.csv $O/$*.c.csv
        $P mv gc-mallocs.csv $O/$*.a.csv
 
        $P mv gc-collections.csv $O/$*.c.csv
        $P mv gc-mallocs.csv $O/$*.a.csv