1 /* 2 * Copyright (c) 1997, 2008, 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 * 23 */ 24 25 # include "incls/_precompiled.incl" 26 # include "incls/_fprofiler.cpp.incl" 27 28 // Static fields of FlatProfiler 29 int FlatProfiler::received_gc_ticks = 0; 30 int FlatProfiler::vm_operation_ticks = 0; 31 int FlatProfiler::threads_lock_ticks = 0; 32 int FlatProfiler::class_loader_ticks = 0; 33 int FlatProfiler::extra_ticks = 0; 34 int FlatProfiler::blocked_ticks = 0; 35 int FlatProfiler::deopt_ticks = 0; 36 int FlatProfiler::unknown_ticks = 0; 37 int FlatProfiler::interpreter_ticks = 0; 38 int FlatProfiler::compiler_ticks = 0; 39 int FlatProfiler::received_ticks = 0; 40 int FlatProfiler::delivered_ticks = 0; 41 int* FlatProfiler::bytecode_ticks = NULL; 42 int* FlatProfiler::bytecode_ticks_stub = NULL; 43 int FlatProfiler::all_int_ticks = 0; 44 int FlatProfiler::all_comp_ticks = 0; 45 int FlatProfiler::all_ticks = 0; 46 bool FlatProfiler::full_profile_flag = false; | 1 /* 2 * Copyright (c) 1997, 2010, 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 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "classfile/classLoader.hpp" 27 #include "code/vtableStubs.hpp" 28 #include "gc_interface/collectedHeap.inline.hpp" 29 #include "interpreter/interpreter.hpp" 30 #include "memory/allocation.inline.hpp" 31 #include "memory/universe.inline.hpp" 32 #include "oops/oop.inline.hpp" 33 #include "oops/oop.inline2.hpp" 34 #include "oops/symbolOop.hpp" 35 #include "runtime/deoptimization.hpp" 36 #include "runtime/fprofiler.hpp" 37 #include "runtime/mutexLocker.hpp" 38 #include "runtime/stubCodeGenerator.hpp" 39 #include "runtime/stubRoutines.hpp" 40 #include "runtime/task.hpp" 41 #include "runtime/vframe.hpp" 42 #include "utilities/macros.hpp" 43 44 // Static fields of FlatProfiler 45 int FlatProfiler::received_gc_ticks = 0; 46 int FlatProfiler::vm_operation_ticks = 0; 47 int FlatProfiler::threads_lock_ticks = 0; 48 int FlatProfiler::class_loader_ticks = 0; 49 int FlatProfiler::extra_ticks = 0; 50 int FlatProfiler::blocked_ticks = 0; 51 int FlatProfiler::deopt_ticks = 0; 52 int FlatProfiler::unknown_ticks = 0; 53 int FlatProfiler::interpreter_ticks = 0; 54 int FlatProfiler::compiler_ticks = 0; 55 int FlatProfiler::received_ticks = 0; 56 int FlatProfiler::delivered_ticks = 0; 57 int* FlatProfiler::bytecode_ticks = NULL; 58 int* FlatProfiler::bytecode_ticks_stub = NULL; 59 int FlatProfiler::all_int_ticks = 0; 60 int FlatProfiler::all_comp_ticks = 0; 61 int FlatProfiler::all_ticks = 0; 62 bool FlatProfiler::full_profile_flag = false; |