MCPcopy Create free account
hub / github.com/defold/defold / func1b

Function func1b

engine/dlib/src/test/test_memprofile.cpp:303–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void func1b(std::vector<void*>& allocations)
304{
305 for (int i = 0; i < 16; ++i)
306 {
307 void*p = malloc(256);
308 g_dont_optimize = p;
309 allocations.push_back(p);
310 func2(allocations);
311 }
312}
313
314TEST(dmMemProfile, TestTrace1)
315{

Callers 1

TESTFunction · 0.85

Calls 3

mallocFunction · 0.85
func2Function · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected