MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / getSize

Method getSize

src/callTraceStorage.cpp:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 u32 _padding2[15];
27
28 static size_t getSize(u32 capacity) {
29 size_t size = sizeof(LongHashTable) + (sizeof(u64) + sizeof(CallTraceSample)) * capacity;
30 return (size + OS::page_mask) & ~OS::page_mask;
31 }
32
33 public:
34 static LongHashTable* allocate(LongHashTable* prev, u32 capacity) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected