[m-dev.] Measure time spent by runtime garbage collector

Ralph Becket rafe at csse.unimelb.edu.au
Fri Oct 5 10:09:22 AEST 2007


Quan Phan, Thursday,  4 October 2007:
> Hi,
> 
> How can I measure the runtime spent by a runtime garbage collector while
> running a Mercury program? More specific is by the Boehm collector when
> the program is compiled in asm_fast.gc grade?

You can prevent the Boehm GC from collecting by running you program with
the environment variable GC_DONT_GC defined (although the Boehm GC will
still be allocating as usual).

If you want to see how your program runs with no GC, compile your
program in a .none grade rather than a .gc grade.

-- Ralph

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the developers mailing list