Path: blob/master/runtime/gc_verbose_old_events/VerboseEventGCEnd.hpp
5985 views
/*******************************************************************************1* Copyright (c) 1991, 2014 IBM Corp. and others2*3* This program and the accompanying materials are made available under4* the terms of the Eclipse Public License 2.0 which accompanies this5* distribution and is available at https://www.eclipse.org/legal/epl-2.0/6* or the Apache License, Version 2.0 which accompanies this distribution and7* is available at https://www.apache.org/licenses/LICENSE-2.0.8*9* This Source Code may also be made available under the following10* Secondary Licenses when the conditions for such availability set11* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU12* General Public License, version 2 with the GNU Classpath13* Exception [1] and GNU General Public License, version 2 with the14* OpenJDK Assembly Exception [2].15*16* [1] https://www.gnu.org/software/classpath/license.html17* [2] http://openjdk.java.net/legal/assembly-exception.html18*19* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception20*******************************************************************************/2122#if !defined(EVENT_GC_END_HPP_)23#define EVENT_GC_END_HPP_2425#include "j9.h"26#include "j9cfg.h"27#include "mmhook.h"2829#include "VerboseEvent.hpp"303132/**33* Stores the data relating to the end of a GC.34* @ingroup GC_verbose_events35*/36class MM_VerboseEventGCEnd : public MM_VerboseEvent37{38protected:39/**40* Passed Data41* @{42*/43MM_CommonGCEndData _gcEndData; /**< data which is common to all GC end events */44/** @} */4546/**47* External Data48* @{49*/50I_64 _timeInMilliSeconds;51/** @} */5253void initialize(void);5455bool hasDetailedTenuredOutput();56//void tlhFormattedOutput(MM_VerboseOutputAgent *agent);57void loaFormattedOutput(MM_VerboseOutputAgent *agent);5859public:6061void gcEndFormattedOutput(MM_VerboseOutputAgent *agent);6263MMINLINE virtual bool definesOutputRoutine() { return true; };64MMINLINE virtual bool endsEventChain() { return true; };6566MM_VerboseEventGCEnd(OMR_VMThread *omrVMThread, U_64 timestamp, UDATA type, MM_CommonGCEndData* gcEndData, J9HookInterface** hookInterface) :67MM_VerboseEvent(omrVMThread, timestamp, type, hookInterface),68_gcEndData(*gcEndData)69{}70};7172#endif /* EVENT_GC_END_HPP_ */737475