Lines Matching refs:instance
574 static Allocator instance(LINKER_INITIALIZED);
576 static MemprofAllocator &get_allocator() { return instance.allocator; } in get_allocator()
578 void InitializeAllocator() { instance.InitLinkerInitialized(); } in InitializeAllocator()
582 instance.CommitBack(this, &stack); in CommitBack()
585 void PrintInternalAllocatorStats() { instance.PrintStats(); } in PrintInternalAllocatorStats()
588 instance.Deallocate(ptr, 0, 0, stack, alloc_type); in memprof_free()
593 instance.Deallocate(ptr, size, alignment, stack, alloc_type); in memprof_delete()
597 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_malloc()
601 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack)); in memprof_calloc()
617 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_realloc()
620 instance.Deallocate(p, 0, 0, stack, FROM_MALLOC); in memprof_realloc()
626 return SetErrnoOnNull(instance.Reallocate(p, size, stack)); in memprof_realloc()
631 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC)); in memprof_valloc()
644 return SetErrnoOnNull(instance.Allocate(size, PageSize, stack, FROM_MALLOC)); in memprof_pvalloc()
655 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, alloc_type)); in memprof_memalign()
666 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, FROM_MALLOC)); in memprof_aligned_alloc()
676 void *ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC); in memprof_posix_memalign()
688 uptr usable_size = instance.AllocationSize(reinterpret_cast<uptr>(ptr)); in memprof_malloc_usable_size()
708 instance.FinishAndWrite(); in __memprof_profile_dump()