MCPcopy Create free account
hub / github.com/devosoft/avida / PrintThreads

Method PrintThreads

libs/tcmalloc-1.4/src/thread_cache.cc:489–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489void ThreadCache::PrintThreads(TCMalloc_Printer* out) {
490 size_t actual_limit = 0;
491 for (ThreadCache* h = thread_heaps_; h != NULL; h = h->next_) {
492 h->Print(out);
493 actual_limit += h->max_size_;
494 }
495 out->printf("ThreadCache overall: %"PRIuS ", unclaimed: %"PRIuS
496 ", actual: %"PRIuS"\n",
497 overall_thread_cache_size_, unclaimed_cache_space_, actual_limit);
498}
499
500void ThreadCache::GetThreadStats(uint64_t* total_bytes, uint64_t* class_count) {
501 for (ThreadCache* h = thread_heaps_; h != NULL; h = h->next_) {

Callers

nothing calls this directly

Calls 2

printfMethod · 0.80
PrintMethod · 0.45

Tested by

no test coverage detected