Adding BlockClosure>>timeToRunWithoutGC [WAS] Fwd: [squeak-dev] The Inbox: Kernel-ul.251.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding BlockClosure>>timeToRunWithoutGC [WAS] Fwd: [squeak-dev] The Inbox: Kernel-ul.251.mcz

Mariano Martinez Peck
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 <[hidden email]>
Date: Mon, Sep 28, 2009 at 2:58 AM
Subject: Re: [squeak-dev] The Inbox: Kernel-ul.251.mcz
To: [hidden email]




On Mon, Sep 28, 2009 at 1:38 PM, <[hidden email]> 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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Adding BlockClosure>>timeToRunWithoutGC [WAS] Fwd: [squeak-dev] The Inbox: Kernel-ul.251.mcz

Stéphane Ducasse
http://code.google.com/p/pharo/issues/detail?id=2463
\
On May 21, 2010, at 11:09 PM, Mariano Martinez Peck wrote:

> 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 <[hidden email]>
> Date: Mon, Sep 28, 2009 at 2:58 AM
> Subject: Re: [squeak-dev] The Inbox: Kernel-ul.251.mcz
> To: [hidden email]
>
>
>
>
> On Mon, Sep 28, 2009 at 1:38 PM, <[hidden email]> 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
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project