• Home
  • Raw
  • Download

Lines Matching refs:impl_

259     : impl_(NULL),  in StatsTable()
269 impl_ = Private::New(name, table_size, max_threads, max_counters); in StatsTable()
271 if (!impl_) in StatsTable()
285 delete impl_; in ~StatsTable()
304 if (!impl_) in RegisterThread()
311 SharedMemoryAutoLock lock(impl_->shared_memory()); in RegisterThread()
321 strlcpy(impl_->thread_name(slot), thread_name.c_str(), in RegisterThread()
323 *(impl_->thread_tid(slot)) = PlatformThread::CurrentId(); in RegisterThread()
324 *(impl_->thread_pid(slot)) = GetCurrentProcId(); in RegisterThread()
337 if (!impl_) in CountThreadsRegistered()
343 for (int index = 1; index <= impl_->max_threads(); index++) { in CountThreadsRegistered()
344 char* name = impl_->thread_name(index); in CountThreadsRegistered()
355 if (!impl_) in FindCounter()
374 if (!impl_) in GetLocation()
376 if (slot_id > impl_->max_threads()) in GetLocation()
379 int* row = impl_->row(counter_id); in GetLocation()
384 if (!impl_) in GetRowName()
387 return impl_->counter_name(index); in GetRowName()
395 if (!impl_) in GetRowValue()
399 int* row = impl_->row(index); in GetRowValue()
400 for (int slot_id = 0; slot_id < impl_->max_threads(); slot_id++) { in GetRowValue()
401 if (pid == 0 || *impl_->thread_pid(slot_id) == pid) in GetRowValue()
412 if (!impl_) in GetCounterValue()
422 if (!impl_) in GetMaxCounters()
424 return impl_->max_counters(); in GetMaxCounters()
428 if (!impl_) in GetMaxThreads()
430 return impl_->max_threads(); in GetMaxThreads()
460 DCHECK(impl_); in UnregisterThread()
463 char* name = impl_->thread_name(data->slot); in UnregisterThread()
491 if (!impl_) in FindEmptyThread()
495 for (; index <= impl_->max_threads(); index++) { in FindEmptyThread()
496 char* name = impl_->thread_name(index); in FindEmptyThread()
500 if (index > impl_->max_threads()) in FindEmptyThread()
513 if (!impl_) in FindCounterOrEmptyRow()
517 for (int index = 1; index <= impl_->max_counters(); index++) { in FindCounterOrEmptyRow()
518 char* row_name = impl_->counter_name(index); in FindCounterOrEmptyRow()
532 if (!impl_) in AddCounter()
539 SharedMemoryAutoLock lock(impl_->shared_memory()); in AddCounter()
549 strlcpy(impl_->counter_name(counter_id), counter_name.c_str(), in AddCounter()