Lines Matching defs:pageheap
78 // or allocated. If free, it is in one of pageheap's freelist.
125 #include "page_heap.h" // for PageHeap, PageHeap::Stats
162 using tcmalloc::PageHeap;
320 PageHeap::Stats pageheap; // Stats from page heap
325 PageHeap::SmallSpanStats* small_spans,
326 PageHeap::LargeSpanStats* large_spans) {
347 r->pageheap = Static::pageheap()->stats();
349 Static::pageheap()->GetSmallSpanStats(small_spans);
352 Static::pageheap()->GetLargeSpanStats(large_spans);
365 PageHeap::SmallSpanStats small;
366 PageHeap::LargeSpanStats large;
378 stats.pageheap.unmapped_bytes + stats.metadata_unmapped_bytes;
380 const uint64_t virtual_memory_used = (stats.pageheap.system_bytes
385 - stats.pageheap.free_bytes
397 (stats.pageheap.committed_bytes - bytes_in_use_by_app) / MiB,
398 stats.pageheap.committed_bytes / MiB,
399 stats.pageheap.committed_bytes / static_cast<double>(bytes_in_use_by_app)
430 stats.pageheap.free_bytes, stats.pageheap.free_bytes / MiB,
434 stats.pageheap.committed_bytes, stats.pageheap.committed_bytes / MiB,
470 out->printf("PageHeap: %d sizes; %6.1f MiB free; %6.1f MiB unmapped\n",
471 nonempty_sizes, stats.pageheap.free_bytes / MiB,
472 stats.pageheap.unmapped_bytes / MiB);
574 if (!Static::pageheap()->GetNextRange(page, &ranges[n])) {
662 *value = stats.pageheap.system_bytes
666 - stats.pageheap.free_bytes
667 - stats.pageheap.unmapped_bytes;
674 *value = stats.pageheap.system_bytes;
682 PageHeap::Stats stats = Static::pageheap()->stats();
689 *value = Static::pageheap()->stats().free_bytes;
695 *value = Static::pageheap()->stats().unmapped_bytes;
756 size_t bytes_released = Static::pageheap()->ReleaseAtLeastNPages(
761 // The PageHeap wasn't able to release num_bytes. Don't try to
801 size_t cl = Static::pageheap()->GetSizeClassIfCached(p);
805 const Span *span = Static::pageheap()->GetDescriptor(p);
862 PageHeap::SmallSpanStats small;
863 PageHeap::LargeSpanStats large;
866 Static::pageheap()->GetSmallSpanStats(&small);
867 Static::pageheap()->GetLargeSpanStats(&large);
957 size_t cached_value = Static::pageheap()->GetSizeClassIfCached(p);
959 cached_value == Static::pageheap()->GetDescriptor(p)->sizeclass;
969 Static::pageheap()->CacheSizeClass(span->start, 0);
982 Span *span = Static::pageheap()->New(tcmalloc::pages(size == 0 ? 1 : size));
1077 Span* span = Static::pageheap()->New(num_pages);
1143 if (Static::pageheap() == NULL) {
1154 size_t cl = Static::pageheap()->GetSizeClassIfCached(p);
1157 span = Static::pageheap()->GetDescriptor(p);
1170 Static::pageheap()->CacheSizeClass(p, cl);
1184 ASSERT(!Static::pageheap()->GetDescriptor(p)->sample);
1203 Static::pageheap()->Delete(span);
1219 size_t cl = Static::pageheap()->GetSizeClassIfCached(p);
1223 const Span *span = Static::pageheap()->GetDescriptor(p);
1227 Static::pageheap()->CacheSizeClass(p, span->sizeclass);
1313 if (Static::pageheap() == NULL) ThreadCache::InitModule();
1344 Span* span = Static::pageheap()->New(tcmalloc::pages(size));
1350 Span* span = Static::pageheap()->New(alloc);
1360 Span* rest = Static::pageheap()->Split(span, skip);
1361 Static::pageheap()->Delete(span);
1369 Span* trailer = Static::pageheap()->Split(span, needed);
1370 Static::pageheap()->Delete(trailer);
1396 info.arena = static_cast<int>(stats.pageheap.system_bytes);
1400 info.fordblks = static_cast<int>(stats.pageheap.free_bytes +
1401 stats.pageheap.unmapped_bytes);
1402 info.uordblks = static_cast<int>(stats.pageheap.system_bytes
1406 - stats.pageheap.free_bytes
1407 - stats.pageheap.unmapped_bytes);