4170N/A * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A// a simple flat profiler for Java 0N/A// Forward declaration of classes defined in this header file 0N/A// Declarations of classes defined only in the implementation. 0N/A// One of these guys is constructed as we enter interesting regions 0N/A// and destructed as we exit the region. While we are in the region 0N/A// ticks are allotted to the region. 0N/A // For now, the only thread-specific region is the class loader. 0N/A // Just to keep these things all together 0N/A // Resets the profiler 0N/A // Activates the profiler for a certain thread 0N/A // Deactivates the profiler 0N/A // Prints the collected profiling information 0N/A // Garbage Collection Support 0N/A // for recording ticks. 0N/A // so we can do percentages for this thread, and quick checks for activity 0N/A // counters for thread-specific regions 0N/A // other thread-specific regions 0N/A // For interval timing 0N/A // This is NULL if each thread has its own thread profiler, 0N/A // else this is the single thread profiler used by all threads. 0N/A // In particular it makes a difference during garbage collection, 0N/A // where you only want to traverse each thread profiler once. 0N/A // Garbage Collection Support 0N/A // Support for disassembler to inspect the PCRecorder 0N/A // Returns the start address for a given pc 0N/A // NULL is returned if the PCRecorder is inactive 0N/A // Returns the number of ticks recorded for the bucket 0N/A // the following group of ticks cover everything that's not attributed to individual Java methods 0N/A // Counts of each of the byte codes 0N/A // the ticks below are for continuous profiling (to adjust recompilation, etc.) 0N/A static int all_ticks;
// total count of ticks received so far 0N/A // to accumulate thread-specific data 0N/A // if we aren't profiling individual threads. 0N/A // The task that periodically interrupts things. 0N/A // For interval analysis 1879N/A#
endif // SHARE_VM_RUNTIME_FPROFILER_HPP