hotspot/src/share/vm/runtime/perfData.hpp
changeset 27680 8ecc0871c18e
parent 22551 9bf46d16dcc6
child 32614 b7b2407bc7e5
equal deleted inserted replaced
27679:06b3a53d7781 27680:8ecc0871c18e
   771                                                       const char *s, TRAPS);
   771                                                       const char *s, TRAPS);
   772 
   772 
   773     static PerfStringVariable* create_string_variable(CounterNS ns,
   773     static PerfStringVariable* create_string_variable(CounterNS ns,
   774                                                       const char* name,
   774                                                       const char* name,
   775                                                       const char *s, TRAPS) {
   775                                                       const char *s, TRAPS) {
   776       return create_string_variable(ns, name, 0, s, CHECK_NULL);
   776       return create_string_variable(ns, name, 0, s, THREAD);
   777     };
   777     };
   778 
   778 
   779     static PerfLongVariable* create_long_variable(CounterNS ns,
   779     static PerfLongVariable* create_long_variable(CounterNS ns,
   780                                                   const char* name,
   780                                                   const char* name,
   781                                                   PerfData::Units u,
   781                                                   PerfData::Units u,
   782                                                   jlong ival, TRAPS);
   782                                                   jlong ival, TRAPS);
   783 
   783 
   784     static PerfLongVariable* create_long_variable(CounterNS ns,
   784     static PerfLongVariable* create_long_variable(CounterNS ns,
   785                                                   const char* name,
   785                                                   const char* name,
   786                                                   PerfData::Units u, TRAPS) {
   786                                                   PerfData::Units u, TRAPS) {
   787       return create_long_variable(ns, name, u, (jlong)0, CHECK_NULL);
   787       return create_long_variable(ns, name, u, (jlong)0, THREAD);
   788     };
   788     };
   789 
   789 
   790     static PerfLongVariable* create_long_variable(CounterNS, const char* name,
   790     static PerfLongVariable* create_long_variable(CounterNS, const char* name,
   791                                                   PerfData::Units u,
   791                                                   PerfData::Units u,
   792                                                   jlong* sp, TRAPS);
   792                                                   jlong* sp, TRAPS);
   803                                                 PerfData::Units u,
   803                                                 PerfData::Units u,
   804                                                 jlong ival, TRAPS);
   804                                                 jlong ival, TRAPS);
   805 
   805 
   806     static PerfLongCounter* create_long_counter(CounterNS ns, const char* name,
   806     static PerfLongCounter* create_long_counter(CounterNS ns, const char* name,
   807                                                 PerfData::Units u, TRAPS) {
   807                                                 PerfData::Units u, TRAPS) {
   808       return create_long_counter(ns, name, u, (jlong)0, CHECK_NULL);
   808       return create_long_counter(ns, name, u, (jlong)0, THREAD);
   809     };
   809     };
   810 
   810 
   811     static PerfLongCounter* create_long_counter(CounterNS ns, const char* name,
   811     static PerfLongCounter* create_long_counter(CounterNS ns, const char* name,
   812                                                 PerfData::Units u, jlong* sp,
   812                                                 PerfData::Units u, jlong* sp,
   813                                                 TRAPS);
   813                                                 TRAPS);
   821     // these creation methods are provided for ease of use. These allow
   821     // these creation methods are provided for ease of use. These allow
   822     // Long performance data types to be created with a shorthand syntax.
   822     // Long performance data types to be created with a shorthand syntax.
   823 
   823 
   824     static PerfConstant* create_constant(CounterNS ns, const char* name,
   824     static PerfConstant* create_constant(CounterNS ns, const char* name,
   825                                          PerfData::Units u, jlong val, TRAPS) {
   825                                          PerfData::Units u, jlong val, TRAPS) {
   826       return create_long_constant(ns, name, u, val, CHECK_NULL);
   826       return create_long_constant(ns, name, u, val, THREAD);
   827     }
   827     }
   828 
   828 
   829     static PerfVariable* create_variable(CounterNS ns, const char* name,
   829     static PerfVariable* create_variable(CounterNS ns, const char* name,
   830                                          PerfData::Units u, jlong ival, TRAPS) {
   830                                          PerfData::Units u, jlong ival, TRAPS) {
   831       return create_long_variable(ns, name, u, ival, CHECK_NULL);
   831       return create_long_variable(ns, name, u, ival, THREAD);
   832     }
   832     }
   833 
   833 
   834     static PerfVariable* create_variable(CounterNS ns, const char* name,
   834     static PerfVariable* create_variable(CounterNS ns, const char* name,
   835                                          PerfData::Units u, TRAPS) {
   835                                          PerfData::Units u, TRAPS) {
   836       return create_long_variable(ns, name, u, (jlong)0, CHECK_NULL);
   836       return create_long_variable(ns, name, u, (jlong)0, THREAD);
   837     }
   837     }
   838 
   838 
   839     static PerfVariable* create_variable(CounterNS ns, const char* name,
   839     static PerfVariable* create_variable(CounterNS ns, const char* name,
   840                                          PerfData::Units u, jlong* sp, TRAPS) {
   840                                          PerfData::Units u, jlong* sp, TRAPS) {
   841       return create_long_variable(ns, name, u, sp, CHECK_NULL);
   841       return create_long_variable(ns, name, u, sp, THREAD);
   842     }
   842     }
   843 
   843 
   844     static PerfVariable* create_variable(CounterNS ns, const char* name,
   844     static PerfVariable* create_variable(CounterNS ns, const char* name,
   845                                          PerfData::Units u,
   845                                          PerfData::Units u,
   846                                          PerfSampleHelper* sh, TRAPS) {
   846                                          PerfSampleHelper* sh, TRAPS) {
   847       return create_long_variable(ns, name, u, sh, CHECK_NULL);
   847       return create_long_variable(ns, name, u, sh, THREAD);
   848     }
   848     }
   849 
   849 
   850     static PerfCounter* create_counter(CounterNS ns, const char* name,
   850     static PerfCounter* create_counter(CounterNS ns, const char* name,
   851                                        PerfData::Units u, jlong ival, TRAPS) {
   851                                        PerfData::Units u, jlong ival, TRAPS) {
   852       return create_long_counter(ns, name, u, ival, CHECK_NULL);
   852       return create_long_counter(ns, name, u, ival, THREAD);
   853     }
   853     }
   854 
   854 
   855     static PerfCounter* create_counter(CounterNS ns, const char* name,
   855     static PerfCounter* create_counter(CounterNS ns, const char* name,
   856                                        PerfData::Units u, TRAPS) {
   856                                        PerfData::Units u, TRAPS) {
   857       return create_long_counter(ns, name, u, (jlong)0, CHECK_NULL);
   857       return create_long_counter(ns, name, u, (jlong)0, THREAD);
   858     }
   858     }
   859 
   859 
   860     static PerfCounter* create_counter(CounterNS ns, const char* name,
   860     static PerfCounter* create_counter(CounterNS ns, const char* name,
   861                                        PerfData::Units u, jlong* sp, TRAPS) {
   861                                        PerfData::Units u, jlong* sp, TRAPS) {
   862       return create_long_counter(ns, name, u, sp, CHECK_NULL);
   862       return create_long_counter(ns, name, u, sp, THREAD);
   863     }
   863     }
   864 
   864 
   865     static PerfCounter* create_counter(CounterNS ns, const char* name,
   865     static PerfCounter* create_counter(CounterNS ns, const char* name,
   866                                        PerfData::Units u,
   866                                        PerfData::Units u,
   867                                        PerfSampleHelper* sh, TRAPS) {
   867                                        PerfSampleHelper* sh, TRAPS) {
   868       return create_long_counter(ns, name, u, sh, CHECK_NULL);
   868       return create_long_counter(ns, name, u, sh, THREAD);
   869     }
   869     }
   870 
   870 
   871     static void destroy();
   871     static void destroy();
   872 };
   872 };
   873 
   873