1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 2001
6 * Lag/Drag/Void profiling.
8 * ---------------------------------------------------------------------------*/
17 extern void LdvCensusForDead ( nat );
18 extern void LdvCensusKillAll ( void );
20 // Creates a 0-filled slop of size 'howManyBackwards' backwards from the
24 // 1) Hp is incremented and exceeds HpLim (in Updates.hc).
25 // 2) copypart() is called (in GC.c).
26 #define LDV_FILL_SLOP(from, howMany) \
29 for (i = 0;i < (howMany); i++) \
30 ((StgWord *)(from))[i] = 0; \
33 // Informs the LDV profiler that closure c has just been evacuated.
34 // Evacuated objects are no longer needed, so we just store its original size in
36 #define SET_EVACUAEE_FOR_LDV(c, size) \
39 #endif /* PROFILING */
41 #endif /* LDVPROFILE_H */