MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxt_gc_alloc

Function __hxt_gc_alloc

src/hx/TelemetryTracy.cpp:67–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65void __hxt_gc_new(hx::StackContext* stack, void* obj, int inSize, const char* name) { }
66
67void __hxt_gc_alloc(void* obj, int inSize)
68{
69 #ifdef HXCPP_TRACY_MEMORY
70 if (isLargeObject(obj))
71 {
72 std::lock_guard<std::mutex> lock(largeAllocsLock);
73
74 largeAllocs.push(obj);
75
76 TracyAllocN(obj, inSize, lohName);
77 }
78 else
79 {
80 hx::StackContext::getCurrent()->mTelemetry->smallAllocs.push(obj);
81
82 TracyAllocN(obj, inSize, sohName);
83 }
84 #endif
85}
86
87void __hxt_gc_free_large(void* obj)
88{

Callers

nothing calls this directly

Calls 2

isLargeObjectFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected