src/share/vm/interpreter/bytecodeHistogram.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 20,29 **** --- 20,35 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ + #ifndef SHARE_VM_INTERPRETER_BYTECODEHISTOGRAM_HPP + #define SHARE_VM_INTERPRETER_BYTECODEHISTOGRAM_HPP + + #include "interpreter/bytecodes.hpp" + #include "memory/allocation.hpp" + // BytecodeCounter counts the number of bytecodes executed class BytecodeCounter: AllStatic { private: NOT_PRODUCT(static int _counter_value;)
*** 88,92 **** --- 94,100 ---- static void reset() PRODUCT_RETURN; // reset counters // Profile printing static void print(float cutoff = 0.01F) PRODUCT_RETURN; // cutoff in percent }; + + #endif // SHARE_VM_INTERPRETER_BYTECODEHISTOGRAM_HPP