Re: Forcing apps to collect GC stats?

2014-07-31 Thread Austin Seipp
Right, so if you look in ./includes/rts/Flags.h, you'll see a set of different options for the GC stats: #define NO_GC_STATS 0 #define COLLECT_GC_STATS 1 #define ONELINE_GC_STATS 2 #define SUMMARY_GC_STATS 3 #define VERBOSE_GC_STATS 4 By default the RTS sets the stats flag to NO_GC_STATS, wh

Re: Forcing apps to collect GC stats?

2014-07-31 Thread Johan Tibell
On Thu, Jul 31, 2014 at 6:55 PM, Austin Seipp wrote: > And also, take note the conditional is very specific; you want > COLLECT_GC_STATS only when NO_GC_STATS is the current setting - if you > unconditionally force COLLECT_GC_STATS, then things like `+RTS > -sstderr -RTS` will no longer work. I me

Re: Forcing apps to collect GC stats?

2014-07-31 Thread Johan Tibell
We already have GHC.Stats. It would be nice if it was put there. On Thu, Jul 31, 2014 at 6:55 PM, Austin Seipp wrote: > The 'safe' mark was just an oversight from me - I don't really think > it matters, considering it's only called once at startup anyway. > Similarly I imagine the oversight is ne

Re: Forcing apps to collect GC stats?

2014-07-31 Thread Austin Seipp
The 'safe' mark was just an oversight from me - I don't really think it matters, considering it's only called once at startup anyway. Similarly I imagine the oversight is negligible in the Criterion or ekg case. And also, take note the conditional is very specific; you want COLLECT_GC_STATS only w

Re: Forcing apps to collect GC stats?

2014-07-31 Thread Johan Tibell
Indeed. I filed a bug earlier today to make use of this. On Thu, Jul 31, 2014 at 6:15 PM, Edward Kmett wrote: > Interesting. > > I suppose ekg could also (ab)use this. > > Johan? > > -Edward > > > On Thu, Jul 31, 2014 at 5:51 AM, Simon Marlow wrote: >> >> Hey Bryan, >> >> Sorry for the delay. >>

Re: Forcing apps to collect GC stats?

2014-07-31 Thread Edward Kmett
Interesting. I suppose ekg could also (ab)use this. Johan? -Edward On Thu, Jul 31, 2014 at 5:51 AM, Simon Marlow wrote: > Hey Bryan, > > Sorry for the delay. > > > On 15/07/14 01:57, Bryan O'Sullivan wrote: > >> I spent a bit of time over the weekend trying to figure out how to force >> the

Re: Forcing apps to collect GC stats?

2014-07-31 Thread Simon Marlow
Hey Bryan, Sorry for the delay. On 15/07/14 01:57, Bryan O'Sullivan wrote: I spent a bit of time over the weekend trying to figure out how to force the RTS to collect GC statistics, but was unable to do so. I'm currently working on enriching criterion's ability to gather data, among which I'd

Forcing apps to collect GC stats?

2014-07-14 Thread Bryan O'Sullivan
I spent a bit of time over the weekend trying to figure out how to force the RTS to collect GC statistics, but was unable to do so. I'm currently working on enriching criterion's ability to gather data, among which I'd like to see GC statistics. If I try to obtain GC stats using criterion when I'm