1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2004
5 * Statistics and timing-related functions.
7 * ---------------------------------------------------------------------------*/
9 /* Alas, no. This source is non-posix.
10 #include "PosixSource.h"
19 #include "ParTicky.h" /* ToDo: move into Rts.h */
20 #include "Profiling.h"
28 #ifndef mingw32_HOST_OS
29 # ifdef HAVE_SYS_TIMES_H
30 # include <sys/times.h>
34 #ifdef HAVE_SYS_TIME_H
44 #if ! irix_HOST_OS && ! defined(mingw32_HOST_OS)
45 # if defined(HAVE_SYS_RESOURCE_H)
46 # include <sys/resource.h>
50 #ifdef HAVE_SYS_TIMEB_H
51 #include <sys/timeb.h>
62 #if defined(PAR) || !(!defined(HAVE_GETRUSAGE) || irix_HOST_OS || defined(mingw32_HOST_OS) || defined(cygwin32_HOST_OS))
63 #include <sys/resource.h>
67 #define BIG_STRING_LEN 512
69 /* We're not trying to be terribly accurate here, using the
70 * basic times() function to get a resolution of about 100ths of a
71 * second, depending on the OS. A long int will do fine for holding
74 #define TICK_TYPE long int
75 #define TICK_TO_DBL(t) ((double)(t) / TicksPerSecond)
77 static int TicksPerSecond = 0;
79 static TICK_TYPE ElapsedTimeStart = 0;
81 static TICK_TYPE InitUserTime = 0;
82 static TICK_TYPE InitElapsedTime = 0;
83 static TICK_TYPE InitElapsedStamp = 0;
85 static TICK_TYPE MutUserTime = 0;
86 static TICK_TYPE MutElapsedTime = 0;
87 static TICK_TYPE MutElapsedStamp = 0;
89 static TICK_TYPE ExitUserTime = 0;
90 static TICK_TYPE ExitElapsedTime = 0;
92 static ullong GC_tot_alloc = 0;
93 static ullong GC_tot_copied = 0;
95 static TICK_TYPE GC_start_time = 0, GC_tot_time = 0; /* User GC Time */
96 static TICK_TYPE GCe_start_time = 0, GCe_tot_time = 0; /* Elapsed GC time */
99 static TICK_TYPE RP_start_time = 0, RP_tot_time = 0; /* retainer prof user time */
100 static TICK_TYPE RPe_start_time = 0, RPe_tot_time = 0; /* retainer prof elap time */
102 static TICK_TYPE HC_start_time, HC_tot_time = 0; // heap census prof user time
103 static TICK_TYPE HCe_start_time, HCe_tot_time = 0; // heap census prof elap time
107 #define PROF_VAL(x) (x)
109 #define PROF_VAL(x) 0
112 static lnat MaxResidency = 0; // in words; for stats only
113 static lnat AvgResidency = 0;
114 static lnat ResidencySamples = 0; // for stats only
116 static lnat GC_start_faults = 0, GC_end_faults = 0;
118 static TICK_TYPE *GC_coll_times;
120 static void getTimes( long *elapsed, long *user );
121 static nat pageFaults(void);
123 static void statsPrintf( char *s, ... )
124 GNUC3_ATTRIBUTE(format (printf, 1, 2));
126 static void statsFlush( void );
127 static void statsClose( void );
129 /* elapsedtime() -- The current elapsed time in seconds */
131 #if defined(mingw32_HOST_OS) || defined(cygwin32_HOST_OS)
132 #define HNS_PER_SEC 10000000LL /* FILETIMES are in units of 100ns */
133 /* Convert FILETIMEs into secs */
134 #define FT2longlong(ll,ft) \
135 (ll)=(ft).dwHighDateTime; \
137 (ll) |= (ft).dwLowDateTime; \
138 (ll) /= (unsigned long long) (HNS_PER_SEC / CLOCKS_PER_SEC)
141 #if defined(mingw32_HOST_OS) || defined(cygwin32_HOST_OS)
142 /* cygwin32 or mingw32 version */
144 getTimes( TICK_TYPE *elapsed, TICK_TYPE *user )
146 static int is_win9x = -1;
148 FILETIME creationTime, exitTime, userTime, kernelTime = {0,0};
149 long long int kT, uT;
152 /* figure out whether we're on a Win9x box or not. */
156 /* Need to init the size field first.*/
157 oi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
158 b = GetVersionEx(&oi);
160 is_win9x = ( (b && (oi.dwPlatformId & VER_PLATFORM_WIN32_WINDOWS)) ? 1 : 0);
164 /* On Win9x, just attribute all running time to the user. */
168 SystemTimeToFileTime(&st,&userTime);
170 /* ToDo: pin down elapsed times to just the OS thread(s) that
171 are evaluating/managing Haskell code.
173 if (!GetProcessTimes (GetCurrentProcess(), &creationTime,
174 &exitTime, &kernelTime, &userTime)) {
175 /* Probably on a Win95 box..*/
182 FT2longlong(kT,kernelTime);
183 FT2longlong(uT,userTime);
188 /* Adjust for the fact that we're using system time & not
189 process time on Win9x. */
190 *user -= ElapsedTimeStart;
191 *elapsed -= ElapsedTimeStart;
198 getTimes( TICK_TYPE *user, TICK_TYPE *elapsed )
202 /* We will #ifdef around the fprintf for machines
203 we *know* are unsupported. (WDP 94/05)
205 debugBelch("NOTE: `getTimes' does nothing!\n");
208 #else /* not stumped */
210 clock_t r = times(&t);
218 /* mut_user_time_during_GC() and mut_user_time()
220 * The former function can be used to get the current mutator time
221 * *during* a GC, i.e. between stat_startGC and stat_endGC. This is
222 * used in the heap profiler for accurately time stamping the heap
225 * ATTENTION: mut_user_time_during_GC() relies on GC_start_time being
226 * defined in stat_startGC() - to minimise system calls,
227 * GC_start_time is, however, only defined when really needed (check
228 * stat_startGC() for details)
231 mut_user_time_during_GC( void )
233 return TICK_TO_DBL(GC_start_time - GC_tot_time - PROF_VAL(RP_tot_time + HC_tot_time));
237 mut_user_time( void )
239 TICK_TYPE user, elapsed;
240 getTimes(&user, &elapsed);
241 return TICK_TO_DBL(user - GC_tot_time - PROF_VAL(RP_tot_time + HC_tot_time));
246 mut_user_time_during_RP() is similar to mut_user_time_during_GC();
247 it returns the MUT time during retainer profiling.
248 The same is for mut_user_time_during_HC();
251 mut_user_time_during_RP( void )
253 return TICK_TO_DBL(RP_start_time - GC_tot_time - RP_tot_time - HC_tot_time);
257 mut_user_time_during_heap_census( void )
259 return TICK_TO_DBL(HC_start_time - GC_tot_time - RP_tot_time - HC_tot_time);
261 #endif /* PROFILING */
266 /* ToDo (on NT): better, get this via the performance data
267 that's stored in the registry. */
268 # if !defined(HAVE_GETRUSAGE) || irix_HOST_OS || defined(mingw32_HOST_OS) || defined(cygwin32_HOST_OS)
273 getrusage(RUSAGE_SELF, &t);
283 if (RtsFlags.GcFlags.giveStats >= VERBOSE_GC_STATS) {
284 statsPrintf(" Alloc Collect Live GC GC TOT TOT Page Flts\n");
285 statsPrintf(" bytes bytes bytes user elap user elap\n");
288 (TICK_TYPE *)stgMallocBytes(
289 sizeof(TICK_TYPE)*RtsFlags.GcFlags.generations,
291 for (i = 0; i < RtsFlags.GcFlags.generations; i++) {
292 GC_coll_times[i] = 0;
296 /* -----------------------------------------------------------------------------
297 Initialisation time...
298 -------------------------------------------------------------------------- */
303 TICK_TYPE user, elapsed;
305 /* Determine TicksPerSecond ... */
306 #if defined(CLK_TCK) /* defined by POSIX */
307 TicksPerSecond = CLK_TCK;
309 #elif defined(HAVE_SYSCONF)
312 ticks = sysconf(_SC_CLK_TCK);
314 debugBelch("stat_init: bad call to 'sysconf'!\n");
315 stg_exit(EXIT_FAILURE);
317 TicksPerSecond = ticks;
319 /* no "sysconf" or CLK_TCK; had better guess */
323 #elif defined(CLOCKS_PER_SEC)
324 TicksPerSecond = CLOCKS_PER_SEC;
326 #else /* had better guess wildly */
327 /* We will #ifdef around the fprintf for machines
328 we *know* are unsupported. (WDP 94/05)
330 debugBelch("NOTE: Guessing `TicksPerSecond = 60'!\n");
334 getTimes( &user, &elapsed );
335 ElapsedTimeStart = elapsed;
341 TICK_TYPE user, elapsed;
342 getTimes( &user, &elapsed );
344 InitElapsedStamp = elapsed;
345 if (ElapsedTimeStart > elapsed) {
348 InitElapsedTime = elapsed - ElapsedTimeStart;
352 /* -----------------------------------------------------------------------------
353 stat_startExit and stat_endExit
355 These two measure the time taken in shutdownHaskell().
356 -------------------------------------------------------------------------- */
361 TICK_TYPE user, elapsed;
362 getTimes( &user, &elapsed );
364 MutElapsedStamp = elapsed;
365 MutElapsedTime = elapsed - GCe_tot_time -
366 PROF_VAL(RPe_tot_time + HCe_tot_time) - InitElapsedStamp;
367 if (MutElapsedTime < 0) { MutElapsedTime = 0; } /* sometimes -0.00 */
369 /* for threads, we don't know the mutator time yet, we have to inspect
370 * all the running threads to find out, and they haven't stopped
371 * yet. So we just timestamp MutUserTime at this point so we can
372 * calculate the EXIT time. The real MutUserTime is calculated
373 * in stat_exit below.
375 #if defined(RTS_SUPPORTS_THREADS)
378 MutUserTime = user - GC_tot_time - PROF_VAL(RP_tot_time + HC_tot_time) - InitUserTime;
379 if (MutUserTime < 0) { MutUserTime = 0; }
386 TICK_TYPE user, elapsed;
387 getTimes( &user, &elapsed );
389 #if defined(RTS_SUPPORTS_THREADS)
390 ExitUserTime = user - MutUserTime;
392 ExitUserTime = user - MutUserTime - GC_tot_time - PROF_VAL(RP_tot_time + HC_tot_time) - InitUserTime;
394 ExitElapsedTime = elapsed - MutElapsedStamp;
395 if (ExitUserTime < 0) {
398 if (ExitElapsedTime < 0) {
403 /* -----------------------------------------------------------------------------
404 Called at the beginning of each GC
405 -------------------------------------------------------------------------- */
407 static nat rub_bell = 0;
409 /* initialise global variables needed during GC
411 * * GC_start_time is read in mut_user_time_during_GC(), which in turn is
412 * needed if either PROFILING or DEBUGing is enabled
417 nat bell = RtsFlags.GcFlags.ringBell;
418 TICK_TYPE user, elapsed;
430 #if defined(PROFILING) || defined(DEBUG)
431 getTimes( &user, &elapsed );
432 GC_start_time = user; /* needed in mut_user_time_during_GC() */
435 if (RtsFlags.GcFlags.giveStats != NO_GC_STATS) {
436 #if !defined(PROFILING) && !defined(DEBUG)
437 getTimes( &user, &elapsed );
438 GC_start_time = user;
440 GCe_start_time = elapsed;
441 if (RtsFlags.GcFlags.giveStats) {
442 GC_start_faults = pageFaults();
447 /* -----------------------------------------------------------------------------
448 Called at the end of each GC
449 -------------------------------------------------------------------------- */
452 stat_endGC(lnat alloc, lnat collect, lnat live, lnat copied, lnat gen)
454 TICK_TYPE user, elapsed;
456 if (RtsFlags.GcFlags.giveStats != NO_GC_STATS) {
457 TICK_TYPE time, etime, gc_time, gc_etime;
459 getTimes( &user, &elapsed );
462 gc_time = time - GC_start_time;
463 gc_etime = etime - GCe_start_time;
465 if (RtsFlags.GcFlags.giveStats == VERBOSE_GC_STATS) {
466 nat faults = pageFaults();
468 statsPrintf("%9ld %9ld %9ld",
469 alloc*sizeof(W_), collect*sizeof(W_), live*sizeof(W_));
470 statsPrintf(" %5.2f %5.2f %7.2f %7.2f %4ld %4ld (Gen: %2ld)\n",
471 TICK_TO_DBL(gc_time),
472 TICK_TO_DBL(gc_etime),
474 TICK_TO_DBL(etime - ElapsedTimeStart),
475 faults - GC_start_faults,
476 GC_start_faults - GC_end_faults,
479 GC_end_faults = faults;
483 GC_coll_times[gen] += gc_time;
485 GC_tot_copied += (ullong) copied;
486 GC_tot_alloc += (ullong) alloc;
487 GC_tot_time += gc_time;
488 GCe_tot_time += gc_etime;
490 #if defined(RTS_SUPPORTS_THREADS)
492 TaskInfo *task_info = taskOfId(osThreadId());
494 if (task_info != NULL) {
495 task_info->gc_time += gc_time;
496 task_info->gc_etime += gc_etime;
501 if (gen == RtsFlags.GcFlags.generations-1) { /* major GC? */
502 if (live > MaxResidency) {
506 AvgResidency += live;
511 debugBelch("\b\b\b \b\b\b");
516 /* -----------------------------------------------------------------------------
517 Called at the beginning of each Retainer Profiliing
518 -------------------------------------------------------------------------- */
523 TICK_TYPE user, elapsed;
524 getTimes( &user, &elapsed );
526 RP_start_time = user;
527 RPe_start_time = elapsed;
529 #endif /* PROFILING */
531 /* -----------------------------------------------------------------------------
532 Called at the end of each Retainer Profiliing
533 -------------------------------------------------------------------------- */
538 nat retainerGeneration,
539 #ifdef DEBUG_RETAINER
543 double averageNumVisit)
545 TICK_TYPE user, elapsed;
546 getTimes( &user, &elapsed );
548 RP_tot_time += user - RP_start_time;
549 RPe_tot_time += elapsed - RPe_start_time;
551 fprintf(prof_file, "Retainer Profiling: %d, at %f seconds\n",
552 retainerGeneration, mut_user_time_during_RP());
553 #ifdef DEBUG_RETAINER
554 fprintf(prof_file, "\tMax C stack size = %u\n", maxCStackSize);
555 fprintf(prof_file, "\tMax auxiliary stack size = %u\n", maxStackSize);
557 fprintf(prof_file, "\tAverage number of visits per object = %f\n", averageNumVisit);
559 #endif /* PROFILING */
561 /* -----------------------------------------------------------------------------
562 Called at the beginning of each heap census
563 -------------------------------------------------------------------------- */
566 stat_startHeapCensus(void)
568 TICK_TYPE user, elapsed;
569 getTimes( &user, &elapsed );
571 HC_start_time = user;
572 HCe_start_time = elapsed;
574 #endif /* PROFILING */
576 /* -----------------------------------------------------------------------------
577 Called at the end of each heap census
578 -------------------------------------------------------------------------- */
581 stat_endHeapCensus(void)
583 TICK_TYPE user, elapsed;
584 getTimes( &user, &elapsed );
586 HC_tot_time += user - HC_start_time;
587 HCe_tot_time += elapsed - HCe_start_time;
589 #endif /* PROFILING */
591 /* -----------------------------------------------------------------------------
594 Called under SMP when a worker thread finishes. We drop the timing
595 stats for this thread into the taskTable struct for that thread.
596 -------------------------------------------------------------------------- */
599 stat_getTimes ( long *currentElapsedTime,
600 long *currentUserTime,
601 long *elapsedGCTime )
603 getTimes(currentUserTime, currentElapsedTime);
604 *elapsedGCTime = GCe_tot_time;
607 /* -----------------------------------------------------------------------------
608 Called at the end of execution
610 NOTE: number of allocations is not entirely accurate: it doesn't
611 take into account the few bytes at the end of the heap that
612 were left unused when the heap-check failed.
613 -------------------------------------------------------------------------- */
618 TICK_TYPE user, elapsed;
620 if (RtsFlags.GcFlags.giveStats != NO_GC_STATS) {
622 char temp[BIG_STRING_LEN];
625 nat g, total_collections = 0;
627 getTimes( &user, &elapsed );
628 etime = elapsed - ElapsedTimeStart;
630 GC_tot_alloc += alloc;
632 /* Count total garbage collections */
633 for (g = 0; g < RtsFlags.GcFlags.generations; g++)
634 total_collections += generations[g].collections;
636 /* For SMP, we have to get the user time from each thread
637 * and try to work out the total time.
639 #if defined(RTS_SUPPORTS_THREADS)
643 for (i = 0; i < taskCount; i++) {
644 MutUserTime += taskTable[i].mut_time;
647 time = MutUserTime + GC_tot_time + InitUserTime + ExitUserTime;
648 if (MutUserTime < 0) { MutUserTime = 0; }
653 /* avoid divide by zero if time is measured as 0.00 seconds -- SDM */
654 if (time == 0.0) time = 1;
655 if (etime == 0.0) etime = 1;
657 if (RtsFlags.GcFlags.giveStats >= VERBOSE_GC_STATS) {
658 statsPrintf("%9ld %9.9s %9.9s", (lnat)alloc*sizeof(W_), "", "");
659 statsPrintf(" %5.2f %5.2f\n\n", 0.0, 0.0);
662 if (RtsFlags.GcFlags.giveStats >= SUMMARY_GC_STATS) {
663 ullong_format_string(GC_tot_alloc*sizeof(W_),
664 temp, rtsTrue/*commas*/);
665 statsPrintf("%11s bytes allocated in the heap\n", temp);
667 ullong_format_string(GC_tot_copied*sizeof(W_),
668 temp, rtsTrue/*commas*/);
669 statsPrintf("%11s bytes copied during GC\n", temp);
671 if ( ResidencySamples > 0 ) {
672 ullong_format_string(MaxResidency*sizeof(W_),
673 temp, rtsTrue/*commas*/);
674 statsPrintf("%11s bytes maximum residency (%ld sample(s))\n",
675 temp, ResidencySamples);
679 /* Print garbage collections in each gen */
680 for (g = 0; g < RtsFlags.GcFlags.generations; g++) {
681 statsPrintf("%11d collections in generation %d (%6.2fs)\n",
682 generations[g].collections, g,
683 TICK_TO_DBL(GC_coll_times[g]));
686 statsPrintf("\n%11ld Mb total memory in use\n\n",
687 mblocks_allocated * MBLOCK_SIZE / (1024 * 1024));
689 #if defined(RTS_SUPPORTS_THREADS)
692 for (i = 0; i < taskCount; i++) {
693 statsPrintf(" Task %2d %-8s : MUT time: %6.2fs (%6.2fs elapsed)\n"
694 " GC time: %6.2fs (%6.2fs elapsed)\n\n",
696 taskTable[i].is_worker ? "(worker)" : "(bound)",
697 TICK_TO_DBL(taskTable[i].mut_time),
698 TICK_TO_DBL(taskTable[i].mut_etime),
699 TICK_TO_DBL(taskTable[i].gc_time),
700 TICK_TO_DBL(taskTable[i].gc_etime));
705 statsPrintf(" INIT time %6.2fs (%6.2fs elapsed)\n",
706 TICK_TO_DBL(InitUserTime), TICK_TO_DBL(InitElapsedTime));
707 statsPrintf(" MUT time %6.2fs (%6.2fs elapsed)\n",
708 TICK_TO_DBL(MutUserTime), TICK_TO_DBL(MutElapsedTime));
709 statsPrintf(" GC time %6.2fs (%6.2fs elapsed)\n",
710 TICK_TO_DBL(GC_tot_time), TICK_TO_DBL(GCe_tot_time));
712 statsPrintf(" RP time %6.2fs (%6.2fs elapsed)\n",
713 TICK_TO_DBL(RP_tot_time), TICK_TO_DBL(RPe_tot_time));
714 statsPrintf(" PROF time %6.2fs (%6.2fs elapsed)\n",
715 TICK_TO_DBL(HC_tot_time), TICK_TO_DBL(HCe_tot_time));
717 statsPrintf(" EXIT time %6.2fs (%6.2fs elapsed)\n",
718 TICK_TO_DBL(ExitUserTime), TICK_TO_DBL(ExitElapsedTime));
719 statsPrintf(" Total time %6.2fs (%6.2fs elapsed)\n\n",
720 TICK_TO_DBL(time), TICK_TO_DBL(etime));
721 statsPrintf(" %%GC time %5.1f%% (%.1f%% elapsed)\n\n",
722 TICK_TO_DBL(GC_tot_time)*100/TICK_TO_DBL(time),
723 TICK_TO_DBL(GCe_tot_time)*100/TICK_TO_DBL(etime));
725 if (time - GC_tot_time - PROF_VAL(RP_tot_time + HC_tot_time) == 0)
726 ullong_format_string(0, temp, rtsTrue/*commas*/);
728 ullong_format_string(
729 (ullong)((GC_tot_alloc*sizeof(W_))/
730 TICK_TO_DBL(time - GC_tot_time -
731 PROF_VAL(RP_tot_time + HC_tot_time))),
732 temp, rtsTrue/*commas*/);
734 statsPrintf(" Alloc rate %s bytes per MUT second\n\n", temp);
736 statsPrintf(" Productivity %5.1f%% of total user, %.1f%% of total elapsed\n\n",
737 TICK_TO_DBL(time - GC_tot_time -
738 PROF_VAL(RP_tot_time + HC_tot_time) - InitUserTime) * 100
740 TICK_TO_DBL(time - GC_tot_time -
741 PROF_VAL(RP_tot_time + HC_tot_time) - InitUserTime) * 100
742 / TICK_TO_DBL(etime));
745 if (RtsFlags.GcFlags.giveStats == ONELINE_GC_STATS) {
746 /* print the long long separately to avoid bugginess on mingwin (2001-07-02, mingw-0.5) */
747 statsPrintf("<<ghc: %llu bytes, ", GC_tot_alloc*(ullong)sizeof(W_));
748 statsPrintf("%d GCs, %ld/%ld avg/max bytes residency (%ld samples), %luM in use, %.2f INIT (%.2f elapsed), %.2f MUT (%.2f elapsed), %.2f GC (%.2f elapsed) :ghc>>\n",
750 ResidencySamples == 0 ? 0 :
751 AvgResidency*sizeof(W_)/ResidencySamples,
752 MaxResidency*sizeof(W_),
754 (unsigned long)(mblocks_allocated * MBLOCK_SIZE / (1024L * 1024L)),
755 TICK_TO_DBL(InitUserTime), TICK_TO_DBL(InitElapsedTime),
756 TICK_TO_DBL(MutUserTime), TICK_TO_DBL(MutElapsedTime),
757 TICK_TO_DBL(GC_tot_time), TICK_TO_DBL(GCe_tot_time));
765 /* -----------------------------------------------------------------------------
768 Produce some detailed info on the state of the generational GC.
769 -------------------------------------------------------------------------- */
772 statDescribeGens(void)
774 nat g, s, mut, lge, live;
778 debugBelch(" Gen Steps Max Mutable Step Blocks Live Large\n Blocks Closures Closures Objects\n");
781 for (g = 0; g < RtsFlags.GcFlags.generations; g++) {
782 for (bd = generations[g].mut_list; bd != NULL; bd = bd->link) {
783 mut += bd->free - bd->start;
786 debugBelch("%8d %8d %8d %9d", g, generations[g].n_steps,
787 generations[g].max_blocks, mut);
789 for (s = 0; s < generations[g].n_steps; s++) {
790 step = &generations[g].steps[s];
791 for (bd = step->large_objects, lge = 0; bd; bd = bd->link)
794 if (RtsFlags.GcFlags.generations == 1) {
795 bd = step->to_blocks;
799 for (; bd; bd = bd->link) {
800 live += (bd->free - bd->start) * sizeof(W_);
803 debugBelch("%46s","");
805 debugBelch("%6d %8d %8d %8d\n", s, step->n_blocks,
813 /* -----------------------------------------------------------------------------
814 Stats available via a programmatic interface, so eg. GHCi can time
815 each compilation and expression evaluation.
816 -------------------------------------------------------------------------- */
818 extern HsInt64 getAllocations( void )
819 { return (HsInt64)total_allocated * sizeof(W_); }
821 /* -----------------------------------------------------------------------------
822 Dumping stuff in the stats file, or via the debug message interface
823 -------------------------------------------------------------------------- */
826 statsPrintf( char *s, ... )
828 FILE *sf = RtsFlags.GcFlags.statsFile;
843 FILE *sf = RtsFlags.GcFlags.statsFile;
852 FILE *sf = RtsFlags.GcFlags.statsFile;