Hi folks. I saw this method in Squeak and seems interesting to include in
Pharo too. What do you think ?

Cheers

Mariano




---------- Forwarded message ----------
From: Michael van der Gulik <mike...@gmail.com>
Date: Mon, Sep 28, 2009 at 2:58 AM
Subject: Re: [squeak-dev] The Inbox: Kernel-ul.251.mcz
To: squeak-...@lists.squeakfoundation.org




On Mon, Sep 28, 2009 at 1:38 PM, <comm...@source.squeak.org> wrote:

> Item was added:
> + ----- Method: BlockClosure>>timeToRunWithoutGC (in category 'evaluating')
> -----
> + timeToRunWithoutGC
> +       "Answer the number of milliseconds taken to execute this block
> without GC time."
> +
> +       ^(SmalltalkImage current vmParameterAt: 8) +
> +               (SmalltalkImage current vmParameterAt: 10) +
> +               self timeToRun -
> +               (SmalltalkImage current vmParameterAt: 8) -
> +               (SmalltalkImage current vmParameterAt: 10)
> + !
>
>
>

Could this method be put somewhere other than in Kernel, say for example in
a separate profiling package?

Gulik.



-- 
http://gulik.pbwiki.com/
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to