perf: Key the interpreter symbol cache by Name rather than FastString
[ghc.git] / rts / Printer.h
blob959b5f025635a1fe4db5390d360fecd1c45e4160
1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2005
5 * Prototypes for functions in Printer.c
7 * ---------------------------------------------------------------------------*/
9 #pragma once
11 #include "BeginPrivate.h"
13 extern void printPtr ( StgPtr p );
14 extern void printObj ( StgClosure *obj );
16 extern const char * closure_type_names[];
18 void info_hdr_type ( const StgClosure *closure, char *res );
19 const char * info_type ( const StgClosure *closure );
20 const char * info_type_by_ip ( const StgInfoTable *ip );
21 const char * info_update_frame ( const StgClosure *closure );
23 #if defined(DEBUG)
24 extern void printClosure ( const StgClosure *obj );
25 extern void printStack ( StgStack *stack );
26 extern void printStackChunk ( StgPtr sp, StgPtr spLim );
27 extern void printTSO ( StgTSO *tso );
28 extern void printMutableList( bdescr *bd );
29 extern void printStaticObjects ( StgClosure *obj );
30 extern void printWeakLists ( void );
31 extern void printLargeAndPinnedObjects ( void );
33 extern void DEBUG_LoadSymbols( const char *name );
35 extern const char *lookupGHCName( void *addr );
37 extern const char *what_next_strs[];
38 #endif
40 #include "EndPrivate.h"