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 <mikevdg@gmail.com>
Date: Mon, Sep 28, 2009 at 2:58 AM
Subject: Re: [squeak-dev] The Inbox: Kernel-ul.251.mcz
To: squeak-dev@lists.squeakfoundation.org




On Mon, Sep 28, 2009 at 1:38 PM, <commits@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/