Re: parallel cost-centre profiling

2010-07-01 Thread Simon Marlow
On 23/06/2010 18:44, Henrique Ferreiro wrote: 2010/6/15 Simon Marlowmarlo...@gmail.com: On 15/06/2010 16:28, Henrique Ferreiro wrote: I got the most important pieces working (I think). The question now is, are you interested in this? It all depends on whether other people would find it

Re: parallel cost-centre profiling

2010-07-01 Thread Henrique Ferreiro
2010/7/1 Simon Marlow marlo...@gmail.com: So one option is to make a new CCS root for each thread, and that way each thread would end up creating its own tree of CCSs.  That would seem to work nicely - you get per-thread stacks almost for free. Unfortunately it's not really per-thread

Re: parallel cost-centre profiling

2010-06-23 Thread Henrique Ferreiro
2010/6/15 Simon Marlow marlo...@gmail.com: On 15/06/2010 16:28, Henrique Ferreiro wrote: I got the most important pieces working (I think). The question now is, are you interested in this? It all depends on whether other people would find it useful or not.  At the moment I'm not convinced

Re: parallel cost-centre profiling

2010-06-15 Thread Simon Marlow
On 14/06/2010 08:39, Henrique Ferreiro wrote: Sorry for the late replay, I thought I made it work but I am still fighting with it. Do you really need to do this? Why not share the stacks and use a mutex to protect the operations? My idea is to allow for profiling of each capability, so I

Re: parallel cost-centre profiling

2010-06-15 Thread Simon Marlow
On 15/06/2010 16:28, Henrique Ferreiro wrote: I got the most important pieces working (I think). The question now is, are you interested in this? It all depends on whether other people would find it useful or not. At the moment I'm not convinced that profiling each Capability separately

Re: parallel cost-centre profiling

2010-06-14 Thread Henrique Ferreiro
Sorry for the late replay, I thought I made it work but I am still fighting with it. Do you really need to do this?  Why not share the stacks and use a mutex to protect the operations? My idea is to allow for profiling of each capability, so I need to keep the stacks independent of each other.

Re: parallel cost-centre profiling

2010-06-10 Thread Henrique Ferreiro
Hi! I manage to make it work with one capability. That is, now the CCCS is stored per capability but I can't enable parallel profiling because the stacks are still shared. Now I wanted to have one instance of each stack and cost centre per capability, so that I can track the behaviour of each

Re: parallel cost-centre profiling

2010-06-10 Thread Simon Marlow
On 10/06/10 18:06, Henrique Ferreiro wrote: Hi! I manage to make it work with one capability. That is, now the CCCS is stored per capability but I can't enable parallel profiling because the stacks are still shared. Now I wanted to have one instance of each stack and cost centre per

Re: parallel cost-centre profiling

2010-06-04 Thread Henrique Ferreiro
Hi again! I need some help with this. 2010/3/17 Simon Marlow marlo...@gmail.com: On 16/03/2010 19:34, Henrique Ferreiro wrote: Hello! I am trying to make cost centre profiling work in the threaded rts build in order to use that information to better understand parallel behaviour.

Re: parallel cost-centre profiling

2010-03-17 Thread Simon Marlow
On 16/03/2010 19:34, Henrique Ferreiro wrote: Hello! I am trying to make cost centre profiling work in the threaded rts build in order to use that information to better understand parallel behaviour. Currently I am learning about the internals of GHC and I am thinking about how this could be