| 487 | } |
| 488 | |
| 489 | void 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 | |
| 500 | void ThreadCache::GetThreadStats(uint64_t* total_bytes, uint64_t* class_count) { |
| 501 | for (ThreadCache* h = thread_heaps_; h != NULL; h = h->next_) { |