< prev index next >

src/hotspot/share/runtime/perfData.cpp

Print this page

510 
511 PerfData* PerfDataList::find_by_name(const char* name) {
512 
513   int i = _set->find_if([&](PerfData* pd) { return pd->name_equals(name); });
514 
515   if (i >= 0 && i <= _set->length())
516     return _set->at(i);
517   else
518     return nullptr;
519 }
520 
521 PerfDataList* PerfDataList::clone() {
522 
523   PerfDataList* copy = new PerfDataList(this);
524 
525   assert(copy != nullptr, "just checking");
526 
527   return copy;
528 }
529 








510 
511 PerfData* PerfDataList::find_by_name(const char* name) {
512 
513   int i = _set->find_if([&](PerfData* pd) { return pd->name_equals(name); });
514 
515   if (i >= 0 && i <= _set->length())
516     return _set->at(i);
517   else
518     return nullptr;
519 }
520 
521 PerfDataList* PerfDataList::clone() {
522 
523   PerfDataList* copy = new PerfDataList(this);
524 
525   assert(copy != nullptr, "just checking");
526 
527   return copy;
528 }
529 
530 PerfTraceTimeBase::~PerfTraceTimeBase() {
531   if (!UsePerfData || !_t->is_active()) return;
532   if (_counter != nullptr) {
533     _t->stop();
534     _counter->inc(_t->ticks());
535   }
536 }
< prev index next >