src/share/vm/runtime/perfData.hpp
Print this page
rev 4773 : 8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
676 // return the list of all known PerfData items
677 static PerfDataList* all();
678 static int count() { return _all->length(); }
679
680 // return the list of all known PerfData items that are to be
681 // sampled by the StatSampler.
682 static PerfDataList* sampled();
683 static int sampled_count() { return _sampled->length(); }
684
685 // return the list of all known PerfData items that have a
686 // variability classification of type Constant
687 static PerfDataList* constants();
688 static int constants_count() { return _constants->length(); }
689
690 public:
691
692 // method to check for the existence of a PerfData item with
693 // the given name.
694 static bool exists(const char* name) { return _all->contains(name); }
695
696 // method to map a CounterNS enumeration to a namespace string
697 static const char* ns_to_string(CounterNS ns) {
698 return _name_spaces[ns];
699 }
700
701 // methods to test the interface stability of a given counter namespace
702 //
703 static bool is_stable_supported(CounterNS ns) {
704 return (ns != NULL_NS) && ((ns % 3) == JAVA_NS);
705 }
706 static bool is_unstable_supported(CounterNS ns) {
707 return (ns != NULL_NS) && ((ns % 3) == COM_NS);
708 }
709 static bool is_unstable_unsupported(CounterNS ns) {
710 return (ns == NULL_NS) || ((ns % 3) == SUN_NS);
711 }
712
713 // methods to test the interface stability of a given counter name
714 //
715 static bool is_stable_supported(const char* name) {
|
676 // return the list of all known PerfData items
677 static PerfDataList* all();
678 static int count() { return _all->length(); }
679
680 // return the list of all known PerfData items that are to be
681 // sampled by the StatSampler.
682 static PerfDataList* sampled();
683 static int sampled_count() { return _sampled->length(); }
684
685 // return the list of all known PerfData items that have a
686 // variability classification of type Constant
687 static PerfDataList* constants();
688 static int constants_count() { return _constants->length(); }
689
690 public:
691
692 // method to check for the existence of a PerfData item with
693 // the given name.
694 static bool exists(const char* name) { return _all->contains(name); }
695
696 // method to search for a instrumentation object by name
697 static PerfData* find_by_name(const char* name);
698
699 // method to map a CounterNS enumeration to a namespace string
700 static const char* ns_to_string(CounterNS ns) {
701 return _name_spaces[ns];
702 }
703
704 // methods to test the interface stability of a given counter namespace
705 //
706 static bool is_stable_supported(CounterNS ns) {
707 return (ns != NULL_NS) && ((ns % 3) == JAVA_NS);
708 }
709 static bool is_unstable_supported(CounterNS ns) {
710 return (ns != NULL_NS) && ((ns % 3) == COM_NS);
711 }
712 static bool is_unstable_unsupported(CounterNS ns) {
713 return (ns == NULL_NS) || ((ns % 3) == SUN_NS);
714 }
715
716 // methods to test the interface stability of a given counter name
717 //
718 static bool is_stable_supported(const char* name) {
|