< prev index next >

src/hotspot/share/code/codeHeapState.hpp

Print this page




  82   static const char* get_heapName(CodeHeap* heap);
  83   static unsigned int findHeapIndex(outputStream* out, const char* heapName);
  84   static void get_HeapStatGlobals(outputStream* out, const char* heapName);
  85   static void set_HeapStatGlobals(outputStream* out, const char* heapName);
  86 
  87   static void printBox(outputStream* out, const char border, const char* text1, const char* text2);
  88   static void print_blobType_legend(outputStream* out);
  89   static void print_space_legend(outputStream* out);
  90   static void print_age_legend(outputStream* out);
  91   static void print_blobType_single(outputStream *ast, u2 /* blobType */ type);
  92   static void print_count_single(outputStream *ast, unsigned short count);
  93   static void print_space_single(outputStream *ast, unsigned short space);
  94   static void print_age_single(outputStream *ast, unsigned int age);
  95   static void print_line_delim(outputStream* out, bufferedStream *sst, char* low_bound, unsigned int ix, unsigned int gpl);
  96   static void print_line_delim(outputStream* out, outputStream *sst, char* low_bound, unsigned int ix, unsigned int gpl);
  97   static blobType get_cbType(CodeBlob* cb);
  98   static bool blob_access_is_safe(CodeBlob* this_blob, CodeBlob* prev_blob);
  99 
 100  public:
 101   static void discard(outputStream* out, CodeHeap* heap);
 102   static void aggregate(outputStream* out, CodeHeap* heap, size_t granularity);
 103   static void print_usedSpace(outputStream* out, CodeHeap* heap);
 104   static void print_freeSpace(outputStream* out, CodeHeap* heap);
 105   static void print_count(outputStream* out, CodeHeap* heap);
 106   static void print_space(outputStream* out, CodeHeap* heap);
 107   static void print_age(outputStream* out, CodeHeap* heap);
 108   static void print_names(outputStream* out, CodeHeap* heap);
 109 };
 110 
 111 //----------------
 112 //  StatElement
 113 //----------------
 114 //  Each analysis granule is represented by an instance of
 115 //  this StatElement struct. It collects and aggregates all
 116 //  information describing the allocated contents of the granule.
 117 //  Free (unallocated) contents is not considered (see FreeBlk for that).
 118 //  All StatElements of a heap segment are stored in the related StatArray.
 119 //  Current size: 40 bytes + 8 bytes class header.
 120 class StatElement : public CHeapObj<mtCode> {
 121   public:
 122     // A note on ages: The compilation_id easily overflows unsigned short in large systems




  82   static const char* get_heapName(CodeHeap* heap);
  83   static unsigned int findHeapIndex(outputStream* out, const char* heapName);
  84   static void get_HeapStatGlobals(outputStream* out, const char* heapName);
  85   static void set_HeapStatGlobals(outputStream* out, const char* heapName);
  86 
  87   static void printBox(outputStream* out, const char border, const char* text1, const char* text2);
  88   static void print_blobType_legend(outputStream* out);
  89   static void print_space_legend(outputStream* out);
  90   static void print_age_legend(outputStream* out);
  91   static void print_blobType_single(outputStream *ast, u2 /* blobType */ type);
  92   static void print_count_single(outputStream *ast, unsigned short count);
  93   static void print_space_single(outputStream *ast, unsigned short space);
  94   static void print_age_single(outputStream *ast, unsigned int age);
  95   static void print_line_delim(outputStream* out, bufferedStream *sst, char* low_bound, unsigned int ix, unsigned int gpl);
  96   static void print_line_delim(outputStream* out, outputStream *sst, char* low_bound, unsigned int ix, unsigned int gpl);
  97   static blobType get_cbType(CodeBlob* cb);
  98   static bool blob_access_is_safe(CodeBlob* this_blob, CodeBlob* prev_blob);
  99 
 100  public:
 101   static void discard(outputStream* out, CodeHeap* heap);
 102   static void aggregate(outputStream* out, CodeHeap* heap, const char* granularity);
 103   static void print_usedSpace(outputStream* out, CodeHeap* heap);
 104   static void print_freeSpace(outputStream* out, CodeHeap* heap);
 105   static void print_count(outputStream* out, CodeHeap* heap);
 106   static void print_space(outputStream* out, CodeHeap* heap);
 107   static void print_age(outputStream* out, CodeHeap* heap);
 108   static void print_names(outputStream* out, CodeHeap* heap);
 109 };
 110 
 111 //----------------
 112 //  StatElement
 113 //----------------
 114 //  Each analysis granule is represented by an instance of
 115 //  this StatElement struct. It collects and aggregates all
 116 //  information describing the allocated contents of the granule.
 117 //  Free (unallocated) contents is not considered (see FreeBlk for that).
 118 //  All StatElements of a heap segment are stored in the related StatArray.
 119 //  Current size: 40 bytes + 8 bytes class header.
 120 class StatElement : public CHeapObj<mtCode> {
 121   public:
 122     // A note on ages: The compilation_id easily overflows unsigned short in large systems


< prev index next >