Make getAllocations() visible
authorSimon Marlow <marlowsd@gmail.com>
Thu, 17 Jun 2010 11:32:59 +0000 (11:32 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 17 Jun 2010 11:32:59 +0000 (11:32 +0000)
includes/rts/storage/GC.h
rts/Stats.h

index 5f2165f..9616d72 100644 (file)
@@ -175,6 +175,13 @@ void revertCAFs (void);
 void setKeepCAFs (void);
 
 /* -----------------------------------------------------------------------------
 void setKeepCAFs (void);
 
 /* -----------------------------------------------------------------------------
+   Stats
+   -------------------------------------------------------------------------- */
+
+// Returns the total number of bytes allocated since the start of the program.
+HsInt64 getAllocations (void);
+
+/* -----------------------------------------------------------------------------
    This is the write barrier for MUT_VARs, a.k.a. IORefs.  A
    MUT_VAR_CLEAN object is not on the mutable list; a MUT_VAR_DIRTY
    is.  When written to, a MUT_VAR_CLEAN turns into a MUT_VAR_DIRTY
    This is the write barrier for MUT_VARs, a.k.a. IORefs.  A
    MUT_VAR_CLEAN object is not on the mutable list; a MUT_VAR_DIRTY
    is.  When written to, a MUT_VAR_CLEAN turns into a MUT_VAR_DIRTY
index d751761..f3a20ae 100644 (file)
@@ -61,8 +61,6 @@ Ticks stat_getElapsedTime(void);
 void statsPrintf( char *s, ... ) 
     GNUC3_ATTRIBUTE(format (printf, 1, 2));
 
 void statsPrintf( char *s, ... ) 
     GNUC3_ATTRIBUTE(format (printf, 1, 2));
 
-HsInt64 getAllocations (void);
-
 #include "EndPrivate.h"
 
 #endif /* STATS_H */
 #include "EndPrivate.h"
 
 #endif /* STATS_H */