X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FRtsExternal.h;h=41c608dbf2639981580f424b54cd8b170c5b8ee9;hb=2b52b76bf04d6bcb2f62971126451d9dc5d90871;hp=58b6ef0e3939a1f4f56501b7d6bcb180c3d4efb3;hpb=df58c2a53d37caf4f3b4d0b60a0466461bba7d19;p=ghc-hetmet.git diff --git a/includes/RtsExternal.h b/includes/RtsExternal.h index 58b6ef0..41c608d 100644 --- a/includes/RtsExternal.h +++ b/includes/RtsExternal.h @@ -43,6 +43,7 @@ extern int forkOS_createThread ( HsStablePtr entry ); extern pid_t forkProcess(HsStablePtr *entry); extern HsBool rtsSupportsBoundThreads(void); extern StgInt newSpark (StgRegTable *reg, StgClosure *p); +extern void stopTimer(void); /* grimy low-level support functions defined in StgPrimFloat.c */ extern StgDouble __encodeDouble (I_ size, StgByteArray arr, I_ e); @@ -72,11 +73,18 @@ extern void freeHaskellFunctionPtr(void* ptr); /* Hpc stuff */ extern int hs_hpc_module(char *modName,int modCount,int modHashNo,StgWord64 *tixArr); -extern void hs_hpc_tick(int globIx,struct StgTSO_ *current_tso); -extern void hs_hpc_raise_event(struct StgTSO_ *current_tso); -extern void hs_hpc_thread_finished_event(struct StgTSO_ *current_tso); -extern void hs_hpc_read(char *filename); -extern void hs_hpc_write(char *filename); +// Simple linked list of modules +typedef struct _HpcModuleInfo { + char *modName; // name of module + int tickCount; // number of ticks + int tickOffset; // offset into a single large .tix Array + int hashNo; // Hash number for this module's mix info + StgWord64 *tixArr; // tix Array; local for this module + struct _HpcModuleInfo *next; +} HpcModuleInfo; + +extern HpcModuleInfo *hs_hpc_rootModule(void); + #if defined(mingw32_HOST_OS) extern int rts_InstallConsoleEvent ( int action, StgStablePtr *handler );