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

Julien Fischer juliensf at csse.unimelb.edu.au
Fri Oct 5 13:18:01 AEST 2007


On Fri, 5 Oct 2007, Ralph Becket wrote:

> 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.

What is a .none grade?  I think you mean a nogc grade here.  (We have
`none' grades but that grade component refers to something other than
garbage collection.)

The two grades Quan wants are:

 	asm_fast		(asm_fast with no gc)
 	asm_fast.gc		(asm_fast with Boehm gc)

Julien.

--------------------------------------------------------------------------
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