Profile with fork

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

Profile with fork

Frederic Pluquet-3
Hello,

I want profile my work to find how reduce the execution time.

In my framework I do a lot of fork, creating processes. When I  
profile, via MessageTally spyOn: [], only the "active" process (the  
father) is profiled and I don't have any information on the  
subprocesses :-(

Is there a simple way to resolve my problem ? Must I use an another  
tool ?

Thank you for your future answers,

Fréd
       

       
               
___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com

Reply | Threaded
Open this post in threaded view
|

Re: Profile with fork

Bert Freudenberg

On Feb 27, 2007, at 16:41 , Frédéric Pluquet wrote:

> Hello,
>
> I want profile my work to find how reduce the execution time.
>
> In my framework I do a lot of fork, creating processes. When I  
> profile, via MessageTally spyOn: [], only the "active" process (the  
> father) is profiled and I don't have any information on the  
> subprocesses :-(
>
> Is there a simple way to resolve my problem ? Must I use an another  
> tool ?
In Tweak there is a version that tallies all processes:

        MessageTally spyOnScript: [...]

The block you spy on could simply contain a Delay. I attached the  
relevant methods.

- Bert -






MessageTally class-spyOnScript.st (533 bytes) Download Attachment
MessageTally class-doReport.st (388 bytes) Download Attachment
MessageTally-spyEveryonScript.st (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Profile with fork

Frederic Pluquet-2
Hello,

Thank you for your answer. But it doesn't work directly. I need to define the method SystemDictionary>>getVMParameters as :

getVMParameters
    ^SmalltalkImage current getVMParameters

Now, it works :-)

Thank you !

Fréd


2007/2/27, Bert Freudenberg <[hidden email]>:

On Feb 27, 2007, at 16:41 , Frédéric Pluquet wrote:

> Hello,
>
> I want profile my work to find how reduce the execution time.
>
> In my framework I do a lot of fork, creating processes. When I
> profile, via MessageTally spyOn: [], only the "active" process (the
> father) is profiled and I don't have any information on the
> subprocesses :-(
>
> Is there a simple way to resolve my problem ? Must I use an another
> tool ?

In Tweak there is a version that tallies all processes:

        MessageTally spyOnScript: [...]

The block you spy on could simply contain a Delay. I attached the
relevant methods.

- Bert -










--
Frédéric Pluquet
Université Libre de Bruxelles (ULB)
Assistant

Reply | Threaded
Open this post in threaded view
|

Re: Profile with fork

Frederic Pluquet-3
In reply to this post by Bert Freudenberg
Hello,

Thank you for your answer. But it doesn't work directly. I need to define the method SystemDictionary>>getVMParamete
rs as :

getVMParameters
    ^SmalltalkImage current getVMParameters

Now, it works :-)

Thank you !

Fréd


2007/2/27, Bert Freudenberg <[hidden email]>:

On Feb 27, 2007, at 16:41 , Frédéric Pluquet wrote:

> Hello,
>
> I want profile my work to find how reduce the execution time.
>
> In my framework I do a lot of fork, creating processes. When I
> profile, via MessageTally spyOn: [], only the "active" process (the
> father) is profiled and I don't have any information on the
> subprocesses :-(
>
> Is there a simple way to resolve my problem ? Must I use an another
> tool ?

In Tweak there is a version that tallies all processes:

        MessageTally spyOnScript: [...]

The block you spy on could simply contain a Delay. I attached the
relevant methods.

- Bert -










--
Frédéric Pluquet
Université Libre de Bruxelles (ULB)
Assistant

Reply | Threaded
Open this post in threaded view
|

Profile with fork in 3.10? (was: Profile with fork)

Diego Gomez Deck
In reply to this post by Bert Freudenberg
It could be nice to include this at 3.10.

Cheers,

-- Diego

El mar, 27-02-2007 a las 17:05 +0100, Bert Freudenberg escribió:

> On Feb 27, 2007, at 16:41 , Frédéric Pluquet wrote:
>
> > Hello,
> >
> > I want profile my work to find how reduce the execution time.
> >
> > In my framework I do a lot of fork, creating processes. When I  
> > profile, via MessageTally spyOn: [], only the "active" process (the  
> > father) is profiled and I don't have any information on the  
> > subprocesses :-(
> >
> > Is there a simple way to resolve my problem ? Must I use an another  
> > tool ?
>
> In Tweak there is a version that tallies all processes:
>
> MessageTally spyOnScript: [...]
>
> The block you spy on could simply contain a Delay. I attached the  
> relevant methods.
>
> - Bert -
>
--

 Diego Gomez Deck
-------------------------------------
 http://diegogomezdeck.blogspot.com/
 http://wwww.consultar.com/



Reply | Threaded
Open this post in threaded view
|

Re: Profile with fork in 3.10? (was: Profile with fork)

Damien Cassou-3
Can you publish a bug on mantis please ?

2007/2/28, Diego Gomez Deck <[hidden email]>:

> It could be nice to include this at 3.10.
>
> Cheers,
>
> -- Diego
>
> El mar, 27-02-2007 a las 17:05 +0100, Bert Freudenberg escribió:
> > On Feb 27, 2007, at 16:41 , Frédéric Pluquet wrote:
> >
> > > Hello,
> > >
> > > I want profile my work to find how reduce the execution time.
> > >
> > > In my framework I do a lot of fork, creating processes. When I
> > > profile, via MessageTally spyOn: [], only the "active" process (the
> > > father) is profiled and I don't have any information on the
> > > subprocesses :-(
> > >
> > > Is there a simple way to resolve my problem ? Must I use an another
> > > tool ?
> >
> > In Tweak there is a version that tallies all processes:
> >
> >       MessageTally spyOnScript: [...]
> >
> > The block you spy on could simply contain a Delay. I attached the
> > relevant methods.
> >
> > - Bert -
> >
> --
>
>  Diego Gomez Deck
> -------------------------------------
>  http://diegogomezdeck.blogspot.com/
>  http://wwww.consultar.com/
>
>
>
>

--
Damien Cassou


Reply | Threaded
Open this post in threaded view
|

Re: Profile with fork in 3.10? (was: Profile with fork)

Edgar J. De Cleene
In reply to this post by Diego Gomez Deck



El 2/28/07 9:24 AM, "Diego Gomez Deck" <[hidden email]>
escribió:

> It could be nice to include this at 3.10.
>
> Cheers,
>
> -- Diego

I see when Bert send, like.

To all:

What else of Croquet, Sophie , Tweak, OLPC, etc could be nice to have ?
Any another base Tool or feature ready for inclusion ?

Cheers Diego, good work in Spain.
Abrazo !!

Edgar



       

       
               
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas


Reply | Threaded
Open this post in threaded view
|

Re: Profile with fork

Bert Freudenberg
In reply to this post by Frederic Pluquet-2
Actually, that method was removed in 3.9 so you should not simply add  
it back. Rather, change the sending side.

- Bert -


On Feb 28, 2007, at 13:14 , Frederic Pluquet wrote:

> Hello,
>
> Thank you for your answer. But it doesn't work directly. I need to  
> define the method SystemDictionary>>getVMParameters as :
>
> getVMParameters
>     ^SmalltalkImage current getVMParameters
>
> Now, it works :-)
>
> Thank you !
>
> Fréd
>
>
> 2007/2/27, Bert Freudenberg <[hidden email]>:
> On Feb 27, 2007, at 16:41 , Frédéric Pluquet wrote:
>
> > Hello,
> >
> > I want profile my work to find how reduce the execution time.
> >
> > In my framework I do a lot of fork, creating processes. When I
> > profile, via MessageTally spyOn: [], only the "active" process (the
> > father) is profiled and I don't have any information on the
> > subprocesses :-(
> >
> > Is there a simple way to resolve my problem ? Must I use an another
> > tool ?
>
> In Tweak there is a version that tallies all processes:
>
>         MessageTally spyOnScript: [...]
>
> The block you spy on could simply contain a Delay. I attached the
> relevant methods.
>
> - Bert -
>