hotspot/src/share/vm/gc_implementation/parallelScavenge/gcTaskThread.cpp
void GCTaskThread::print_task_time_stamps() {
{- -------------------------------------------
(1) (assert)
---------------------------------------- -}
assert(PrintGCTaskTimeStamps, "Sanity");
assert(_time_stamps != NULL, "Sanity (Probably set PrintGCTaskTimeStamps late)");
{- -------------------------------------------
(1) (トレース出力)
(_time_stamp_index 個の GCTaskTimeStamp が溜まっているはずなので,
それを全て出力) (See: GCTaskTimeStamp)
---------------------------------------- -}
tty->print_cr("GC-Thread %u entries: %d", id(), _time_stamp_index);
for(uint i=0; i<_time_stamp_index; i++) {
GCTaskTimeStamp* time_stamp = time_stamp_at(i);
tty->print_cr("\t[ %s " INT64_FORMAT " " INT64_FORMAT " ]",
time_stamp->name(),
time_stamp->entry_time(),
time_stamp->exit_time());
}
{- -------------------------------------------
(1) _time_stamp_index フィールドの値を 0 に戻しておく.
---------------------------------------- -}
// Reset after dumping the data
_time_stamp_index = 0;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.