1 /*
2 * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
100
101 cname = PerfDataManager::counter_name(name_space(), "avgMajorIntervalTime");
102 _avg_major_interval = PerfDataManager::create_variable(SUN_GC, cname,
103 PerfData::U_Ticks, (jlong) ps_size_policy()->_avg_major_interval->average(), CHECK);
104
105 cname = PerfDataManager::counter_name(name_space(), "majorGcCost");
106 _major_gc_cost_counter = PerfDataManager::create_variable(SUN_GC, cname,
107 PerfData::U_Ticks, (jlong) ps_size_policy()->major_gc_cost(), CHECK);
108
109 cname = PerfDataManager::counter_name(name_space(), "liveSpace");
110 _live_space = PerfDataManager::create_variable(SUN_GC, cname,
111 PerfData::U_Bytes, ps_size_policy()->live_space(), CHECK);
112
113 cname = PerfDataManager::counter_name(name_space(), "freeSpace");
114 _free_space = PerfDataManager::create_variable(SUN_GC, cname,
115 PerfData::U_Bytes, ps_size_policy()->free_space(), CHECK);
116
117 cname = PerfDataManager::counter_name(name_space(), "avgBaseFootprint");
118 _avg_base_footprint = PerfDataManager::create_variable(SUN_GC, cname,
119 PerfData::U_Bytes, (jlong) ps_size_policy()->avg_base_footprint()->average(), CHECK);
120
121 cname = PerfDataManager::counter_name(name_space(), "gcTimeLimitExceeded");
122 _gc_overhead_limit_exceeded_counter =
123 PerfDataManager::create_variable(SUN_GC, cname,
124 PerfData::U_Events, ps_size_policy()->gc_overhead_limit_exceeded(), CHECK);
125
126 cname = PerfDataManager::counter_name(name_space(), "liveAtLastFullGc");
127 _live_at_last_full_gc_counter =
128 PerfDataManager::create_variable(SUN_GC, cname,
129 PerfData::U_Bytes, ps_size_policy()->live_at_last_full_gc(), CHECK);
130
131 cname = PerfDataManager::counter_name(name_space(), "majorPauseOldSlope");
132 _major_pause_old_slope = PerfDataManager::create_variable(SUN_GC, cname,
133 PerfData::U_None, (jlong) 0, CHECK);
134
135 cname = PerfDataManager::counter_name(name_space(), "minorPauseOldSlope");
136 _minor_pause_old_slope = PerfDataManager::create_variable(SUN_GC, cname,
137 PerfData::U_None, (jlong) 0, CHECK);
138
139 cname = PerfDataManager::counter_name(name_space(), "majorPauseYoungSlope");
140 _major_pause_young_slope = PerfDataManager::create_variable(SUN_GC, cname,
141 PerfData::U_None, (jlong) 0, CHECK);
142
143 cname = PerfDataManager::counter_name(name_space(), "scavengeSkipped");
144 _scavenge_skipped = PerfDataManager::create_variable(SUN_GC, cname,
|
1 /*
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
100
101 cname = PerfDataManager::counter_name(name_space(), "avgMajorIntervalTime");
102 _avg_major_interval = PerfDataManager::create_variable(SUN_GC, cname,
103 PerfData::U_Ticks, (jlong) ps_size_policy()->_avg_major_interval->average(), CHECK);
104
105 cname = PerfDataManager::counter_name(name_space(), "majorGcCost");
106 _major_gc_cost_counter = PerfDataManager::create_variable(SUN_GC, cname,
107 PerfData::U_Ticks, (jlong) ps_size_policy()->major_gc_cost(), CHECK);
108
109 cname = PerfDataManager::counter_name(name_space(), "liveSpace");
110 _live_space = PerfDataManager::create_variable(SUN_GC, cname,
111 PerfData::U_Bytes, ps_size_policy()->live_space(), CHECK);
112
113 cname = PerfDataManager::counter_name(name_space(), "freeSpace");
114 _free_space = PerfDataManager::create_variable(SUN_GC, cname,
115 PerfData::U_Bytes, ps_size_policy()->free_space(), CHECK);
116
117 cname = PerfDataManager::counter_name(name_space(), "avgBaseFootprint");
118 _avg_base_footprint = PerfDataManager::create_variable(SUN_GC, cname,
119 PerfData::U_Bytes, (jlong) ps_size_policy()->avg_base_footprint()->average(), CHECK);
120
121 cname = PerfDataManager::counter_name(name_space(), "liveAtLastFullGc");
122 _live_at_last_full_gc_counter =
123 PerfDataManager::create_variable(SUN_GC, cname,
124 PerfData::U_Bytes, ps_size_policy()->live_at_last_full_gc(), CHECK);
125
126 cname = PerfDataManager::counter_name(name_space(), "majorPauseOldSlope");
127 _major_pause_old_slope = PerfDataManager::create_variable(SUN_GC, cname,
128 PerfData::U_None, (jlong) 0, CHECK);
129
130 cname = PerfDataManager::counter_name(name_space(), "minorPauseOldSlope");
131 _minor_pause_old_slope = PerfDataManager::create_variable(SUN_GC, cname,
132 PerfData::U_None, (jlong) 0, CHECK);
133
134 cname = PerfDataManager::counter_name(name_space(), "majorPauseYoungSlope");
135 _major_pause_young_slope = PerfDataManager::create_variable(SUN_GC, cname,
136 PerfData::U_None, (jlong) 0, CHECK);
137
138 cname = PerfDataManager::counter_name(name_space(), "scavengeSkipped");
139 _scavenge_skipped = PerfDataManager::create_variable(SUN_GC, cname,
|