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