Lines Matching refs:instance
572 static Allocator instance(LINKER_INITIALIZED);
574 static MemprofAllocator &get_allocator() { return instance.allocator; } in get_allocator()
576 void InitializeAllocator() { instance.InitLinkerInitialized(); } in InitializeAllocator()
580 instance.CommitBack(this, &stack); in CommitBack()
583 void PrintInternalAllocatorStats() { instance.PrintStats(); } in PrintInternalAllocatorStats()
586 instance.Deallocate(ptr, 0, 0, stack, alloc_type); in memprof_free()
591 instance.Deallocate(ptr, size, alignment, stack, alloc_type); in memprof_delete()
595 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_malloc()
599 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack)); in memprof_calloc()
615 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_realloc()
618 instance.Deallocate(p, 0, 0, stack, FROM_MALLOC); in memprof_realloc()
624 return SetErrnoOnNull(instance.Reallocate(p, size, stack)); in memprof_realloc()
629 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC)); in memprof_valloc()
642 return SetErrnoOnNull(instance.Allocate(size, PageSize, stack, FROM_MALLOC)); in memprof_pvalloc()
653 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, alloc_type)); in memprof_memalign()
664 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, FROM_MALLOC)); in memprof_aligned_alloc()
674 void *ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC); in memprof_posix_memalign()
686 uptr usable_size = instance.AllocationSize(reinterpret_cast<uptr>(ptr)); in memprof_malloc_usable_size()
706 instance.FinishAndWrite(); in __memprof_profile_dump()