src/share/vm/runtime/timer.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/runtime/timer.hpp	Mon Feb 15 17:04:26 2016
--- new/src/share/vm/runtime/timer.hpp	Mon Feb 15 17:04:26 2016

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 1997, 2016, 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.
*** 23,34 **** --- 23,37 ---- */ #ifndef SHARE_VM_RUNTIME_TIMER_HPP #define SHARE_VM_RUNTIME_TIMER_HPP + #include "logging/logTag.hpp" #include "utilities/globalDefinitions.hpp" + class outpuStream; + // Timers for simple measurement. class elapsedTimer VALUE_OBJ_CLASS_SPEC { friend class VMStructs; private:
*** 83,100 **** --- 86,108 ---- private: bool _active; // do timing bool _verbose; // report every timing elapsedTimer _t; // timer elapsedTimer* _accum; // accumulator + const char* _title; // name of timer + LogTagType _tag; // stream to print to + public: // Constructors TraceTime(const char* title, ! bool doit = true); ! bool doit = true, + LogTagType tag = LogTag::__NO_TAG); TraceTime(const char* title, elapsedTimer* accumulator, bool doit = true, ! bool verbose = false); ! bool verbose = false, + LogTagType tag = LogTag::__NO_TAG); ~TraceTime(); // Accessors void set_verbose(bool verbose) { _verbose = verbose; } bool verbose() const { return _verbose; }

src/share/vm/runtime/timer.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File