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 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "services/attachListener.hpp"
28 #include "services/management.hpp"
29 #include "services/runtimeService.hpp"
30 #include "utilities/dtrace.hpp"
31 #include "utilities/exceptions.hpp"
32 #include "utilities/macros.hpp"
33
34 #if INCLUDE_MANAGEMENT
35 TimeStamp RuntimeService::_app_timer;
36 TimeStamp RuntimeService::_safepoint_timer;
37 PerfCounter* RuntimeService::_sync_time_ticks = NULL;
38 PerfCounter* RuntimeService::_total_safepoints = NULL;
39 PerfCounter* RuntimeService::_safepoint_time_ticks = NULL;
40 PerfCounter* RuntimeService::_application_time_ticks = NULL;
41 double RuntimeService::_last_safepoint_sync_time_sec = 0.0;
42
43 void RuntimeService::init() {
44 // Make sure the VM version is initialized
45 Abstract_VM_Version::initialize();
46
|
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 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "runtime/vm_version.hpp"
28 #include "services/attachListener.hpp"
29 #include "services/management.hpp"
30 #include "services/runtimeService.hpp"
31 #include "utilities/dtrace.hpp"
32 #include "utilities/exceptions.hpp"
33 #include "utilities/macros.hpp"
34
35 #if INCLUDE_MANAGEMENT
36 TimeStamp RuntimeService::_app_timer;
37 TimeStamp RuntimeService::_safepoint_timer;
38 PerfCounter* RuntimeService::_sync_time_ticks = NULL;
39 PerfCounter* RuntimeService::_total_safepoints = NULL;
40 PerfCounter* RuntimeService::_safepoint_time_ticks = NULL;
41 PerfCounter* RuntimeService::_application_time_ticks = NULL;
42 double RuntimeService::_last_safepoint_sync_time_sec = 0.0;
43
44 void RuntimeService::init() {
45 // Make sure the VM version is initialized
46 Abstract_VM_Version::initialize();
47
|