Mercurial > hg > truffle
comparison src/share/vm/services/threadService.cpp @ 875:6a93908f268f
6857194: Add hotspot perf counters to aid class loading performance measurement
Summary: Add new jvmstat counters to measure detailed class loading time
Reviewed-by: acorn, kamg
author | mchung |
---|---|
date | Fri, 10 Jul 2009 11:10:00 -0700 |
parents | d95b224e9f17 |
children | 89e0543e1737 |
comparison
equal
deleted
inserted
replaced
812:85d0690f7d12 | 875:6a93908f268f |
---|---|
686 | 686 |
687 ThreadStatistics::ThreadStatistics() { | 687 ThreadStatistics::ThreadStatistics() { |
688 _contended_enter_count = 0; | 688 _contended_enter_count = 0; |
689 _monitor_wait_count = 0; | 689 _monitor_wait_count = 0; |
690 _sleep_count = 0; | 690 _sleep_count = 0; |
691 _class_init_recursion_count = 0; | |
692 _class_verify_recursion_count = 0; | |
693 _count_pending_reset = false; | 691 _count_pending_reset = false; |
694 _timer_pending_reset = false; | 692 _timer_pending_reset = false; |
693 memset((void*) _perf_recursion_counts, 0, sizeof(_perf_recursion_counts)); | |
695 } | 694 } |
696 | 695 |
697 ThreadSnapshot::ThreadSnapshot(JavaThread* thread) { | 696 ThreadSnapshot::ThreadSnapshot(JavaThread* thread) { |
698 _thread = thread; | 697 _thread = thread; |
699 _threadObj = thread->threadObj(); | 698 _threadObj = thread->threadObj(); |