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

Method alloc

src/instrument.cpp:238–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 // Writer
237
238 u8* alloc(int bytes) {
239 if (_dst_len + bytes > _dst_capacity) {
240 grow(_dst_len + bytes + 2000);
241 }
242 u8* result = _dst + _dst_len;
243 _dst_len += bytes;
244 return result;
245 }
246
247 void grow(int new_capacity) {
248 u8* new_dst = NULL;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected