< prev index next >

src/hotspot/share/gc/shared/gcTrace.cpp

Print this page
rev 60811 : imported patch jep387-all.patch
rev 60812 : [mq]: diff1


  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 #include "precompiled.hpp"
  26 #include "gc/shared/copyFailedInfo.hpp"
  27 #include "gc/shared/gcHeapSummary.hpp"
  28 #include "gc/shared/gcId.hpp"
  29 #include "gc/shared/gcTimer.hpp"
  30 #include "gc/shared/gcTrace.hpp"
  31 #include "gc/shared/objectCountEventSender.hpp"
  32 #include "gc/shared/referenceProcessorStats.hpp"
  33 #include "memory/metaspace.hpp"
  34 #include "memory/heapInspection.hpp"
  35 #include "memory/resourceArea.hpp"
  36 #include "runtime/os.hpp"
  37 #include "utilities/globalDefinitions.hpp"
  38 #include "utilities/macros.hpp"
  39 #include "utilities/ticks.hpp"
  40 
  41 void GCTracer::report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp) {
  42   _shared_gc_info.set_cause(cause);
  43   _shared_gc_info.set_start_timestamp(timestamp);
  44 }
  45 
  46 void GCTracer::report_gc_start(GCCause::Cause cause, const Ticks& timestamp) {
  47   report_gc_start_impl(cause, timestamp);
  48 }
  49 
  50 void GCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
  51   _shared_gc_info.set_sum_of_pauses(time_partitions->sum_of_pauses());
  52   _shared_gc_info.set_longest_pause(time_partitions->longest_pause());
  53   _shared_gc_info.set_end_timestamp(timestamp);




  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 #include "precompiled.hpp"
  26 #include "gc/shared/copyFailedInfo.hpp"
  27 #include "gc/shared/gcHeapSummary.hpp"
  28 #include "gc/shared/gcId.hpp"
  29 #include "gc/shared/gcTimer.hpp"
  30 #include "gc/shared/gcTrace.hpp"
  31 #include "gc/shared/objectCountEventSender.hpp"
  32 #include "gc/shared/referenceProcessorStats.hpp"

  33 #include "memory/heapInspection.hpp"
  34 #include "memory/resourceArea.hpp"
  35 #include "runtime/os.hpp"
  36 #include "utilities/globalDefinitions.hpp"
  37 #include "utilities/macros.hpp"
  38 #include "utilities/ticks.hpp"
  39 
  40 void GCTracer::report_gc_start_impl(GCCause::Cause cause, const Ticks& timestamp) {
  41   _shared_gc_info.set_cause(cause);
  42   _shared_gc_info.set_start_timestamp(timestamp);
  43 }
  44 
  45 void GCTracer::report_gc_start(GCCause::Cause cause, const Ticks& timestamp) {
  46   report_gc_start_impl(cause, timestamp);
  47 }
  48 
  49 void GCTracer::report_gc_end_impl(const Ticks& timestamp, TimePartitions* time_partitions) {
  50   _shared_gc_info.set_sum_of_pauses(time_partitions->sum_of_pauses());
  51   _shared_gc_info.set_longest_pause(time_partitions->longest_pause());
  52   _shared_gc_info.set_end_timestamp(timestamp);


< prev index next >