diff src/share/vm/runtime/vmStructs.cpp @ 12779:f6c511451e4a

made Graal report its compilation info under -XX:+CITime in the same format as c1 and c2
author Doug Simon <doug.simon@oracle.com>
date Tue, 19 Nov 2013 01:31:19 +0100
parents ae412befde21
children 096c224171c4
line wrap: on
line diff
--- a/src/share/vm/runtime/vmStructs.cpp	Tue Nov 19 01:12:27 2013 +0100
+++ b/src/share/vm/runtime/vmStructs.cpp	Tue Nov 19 01:31:19 2013 +0100
@@ -1283,8 +1283,14 @@
   nonstatic_field(FreeList<Metablock>,         _size,                                        size_t)                                 \
   nonstatic_field(FreeList<FreeChunk>,         _count,                                       ssize_t)                                \
   nonstatic_field(FreeList<Metablock>,         _count,                                       ssize_t)                                \
-  nonstatic_field(MetablockTreeDictionary,     _total_size,                                  size_t)
-
+  nonstatic_field(MetablockTreeDictionary,     _total_size,                                  size_t)                                 \
+  GRAAL_ONLY(nonstatic_field(CompilerStatistics, _standard,                                  CompilerStatistics::Data))              \
+  GRAAL_ONLY(nonstatic_field(CompilerStatistics, _osr,                                       CompilerStatistics::Data))              \
+  GRAAL_ONLY(nonstatic_field(CompilerStatistics, _nmethods_size,                             int))                                   \
+  GRAAL_ONLY(nonstatic_field(CompilerStatistics, _nmethods_code_size,                        int))                                   \
+  GRAAL_ONLY(nonstatic_field(CompilerStatistics::Data, _bytes,                               int))                                   \
+  GRAAL_ONLY(nonstatic_field(CompilerStatistics::Data, _count,                               int))                                   \
+  GRAAL_ONLY(nonstatic_field(CompilerStatistics::Data, _time,                                elapsedTimer))
 
 //--------------------------------------------------------------------------------
 // VM_TYPES
@@ -2143,6 +2149,8 @@
   /* Miscellaneous types */                                               \
   /***************/                                                       \
                                                                           \
+  GRAAL_ONLY(declare_toplevel_type(CompilerStatistics))                   \
+  GRAAL_ONLY(declare_toplevel_type(CompilerStatistics::Data))             \
   declare_toplevel_type(PtrQueue)                                         \
                                                                           \
   /* freelist */                                                          \