src/share/vm/services/memoryService.hpp

Print this page


   1 /*
   2  * Copyright (c) 2003, 2006, 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 // Forward declaration
  26 class MemoryPool;
  27 class MemoryManager;
  28 class GCMemoryManager;
  29 class CollectedHeap;
  30 class Generation;
  31 class DefNewGeneration;
  32 class PSYoungGen;
  33 class PSOldGen;
  34 class PSPermGen;
  35 class CodeHeap;
  36 class ContiguousSpace;
  37 class CompactibleFreeListSpace;
  38 class PermanentGenerationSpec;
  39 class GenCollectedHeap;
  40 class ParallelScavengeHeap;
  41 class CompactingPermGenGen;
  42 class CMSPermGenGen;
  43 class G1CollectedHeap;
  44 


 183                           bool recordGCBeginTime = true,
 184                           bool recordPreGCUsage = true,
 185                           bool recordPeakUsage = true,
 186                           bool recordPostGCUsage = true,
 187                           bool recordAccumulatedGCTime = true,
 188                           bool recordGCEndTime = true,
 189                           bool countCollection = true);
 190 
 191   void initialize(bool fullGC,
 192                   bool recordGCBeginTime,
 193                   bool recordPreGCUsage,
 194                   bool recordPeakUsage,
 195                   bool recordPostGCUsage,
 196                   bool recordAccumulatedGCTime,
 197                   bool recordGCEndTime,
 198                   bool countCollection);
 199 
 200   TraceMemoryManagerStats(Generation::Name kind);
 201   ~TraceMemoryManagerStats();
 202 };


   1 /*
   2  * Copyright (c) 2003, 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 #ifndef SHARE_VM_SERVICES_MEMORYSERVICE_HPP
  26 #define SHARE_VM_SERVICES_MEMORYSERVICE_HPP
  27 
  28 #include "memory/allocation.hpp"
  29 #include "memory/generation.hpp"
  30 #include "runtime/handles.hpp"
  31 #include "services/memoryUsage.hpp"
  32 
  33 // Forward declaration
  34 class MemoryPool;
  35 class MemoryManager;
  36 class GCMemoryManager;
  37 class CollectedHeap;
  38 class Generation;
  39 class DefNewGeneration;
  40 class PSYoungGen;
  41 class PSOldGen;
  42 class PSPermGen;
  43 class CodeHeap;
  44 class ContiguousSpace;
  45 class CompactibleFreeListSpace;
  46 class PermanentGenerationSpec;
  47 class GenCollectedHeap;
  48 class ParallelScavengeHeap;
  49 class CompactingPermGenGen;
  50 class CMSPermGenGen;
  51 class G1CollectedHeap;
  52 


 191                           bool recordGCBeginTime = true,
 192                           bool recordPreGCUsage = true,
 193                           bool recordPeakUsage = true,
 194                           bool recordPostGCUsage = true,
 195                           bool recordAccumulatedGCTime = true,
 196                           bool recordGCEndTime = true,
 197                           bool countCollection = true);
 198 
 199   void initialize(bool fullGC,
 200                   bool recordGCBeginTime,
 201                   bool recordPreGCUsage,
 202                   bool recordPeakUsage,
 203                   bool recordPostGCUsage,
 204                   bool recordAccumulatedGCTime,
 205                   bool recordGCEndTime,
 206                   bool countCollection);
 207 
 208   TraceMemoryManagerStats(Generation::Name kind);
 209   ~TraceMemoryManagerStats();
 210 };
 211 
 212 #endif // SHARE_VM_SERVICES_MEMORYSERVICE_HPP