< prev index next >

src/hotspot/share/services/memoryService.hpp

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2018, 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.

@@ -100,11 +100,12 @@
                        bool recordAccumulatedGCTime,
                        bool recordPreGCUsage, bool recordPeakUsage);
   static void gc_end(GCMemoryManager* manager, bool recordPostGCUsage,
                      bool recordAccumulatedGCTime,
                      bool recordGCEndTime, bool countCollection,
-                     GCCause::Cause cause);
+                     GCCause::Cause cause,
+                     bool allMemoryPoolsAffected);
 
   static void oops_do(OopClosure* f);
 
   static bool get_verbose() { return log_is_enabled(Info, gc); }
   static bool set_verbose(bool verbose);

@@ -114,10 +115,11 @@
 };
 
 class TraceMemoryManagerStats : public StackObj {
 private:
   GCMemoryManager* _gc_memory_manager;
+  bool         _allMemoryPoolsAffected;
   bool         _recordGCBeginTime;
   bool         _recordPreGCUsage;
   bool         _recordPeakUsage;
   bool         _recordPostGCUsage;
   bool         _recordAccumulatedGCTime;

@@ -126,10 +128,11 @@
   GCCause::Cause _cause;
 public:
   TraceMemoryManagerStats() {}
   TraceMemoryManagerStats(GCMemoryManager* gc_memory_manager,
                           GCCause::Cause cause,
+                          bool allMemoryPoolsAffected = true,
                           bool recordGCBeginTime = true,
                           bool recordPreGCUsage = true,
                           bool recordPeakUsage = true,
                           bool recordPostGCUsage = true,
                           bool recordAccumulatedGCTime = true,

@@ -142,11 +145,12 @@
                   bool recordPreGCUsage,
                   bool recordPeakUsage,
                   bool recordPostGCUsage,
                   bool recordAccumulatedGCTime,
                   bool recordGCEndTime,
-                  bool countCollection);
+                  bool countCollection,
+                  bool allMemoryPoolsAffected = true);
 
   ~TraceMemoryManagerStats();
 };
 
 #endif // SHARE_VM_SERVICES_MEMORYSERVICE_HPP
< prev index next >