X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=includes%2FRtsExternal.h;h=30a5b567021cd9079bbf911471aca1654d3ff0d8;hp=58b6ef0e3939a1f4f56501b7d6bcb180c3d4efb3;hb=65ff44face84ae30f1ddf7d009d51c1778f8c7d3;hpb=df58c2a53d37caf4f3b4d0b60a0466461bba7d19 diff --git a/includes/RtsExternal.h b/includes/RtsExternal.h index 58b6ef0..30a5b56 100644 --- a/includes/RtsExternal.h +++ b/includes/RtsExternal.h @@ -72,11 +72,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 );