MCPcopy Create free account
hub / github.com/apache/trafficserver / test_case_1

Function test_case_1

tools/benchmark/benchmark_FreeList.cc:102–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100#endif // TS_USE_HWLOC
101
102void *
103test_case_1(void *d)
104{
105 int id;
106 void *m1;
107
108 id = (intptr_t)d;
109
110 for (int i = 0; i < nloop; ++i) {
111 m1 = ink_freelist_new(flist);
112
113 memset(m1, id, 64);
114
115 ink_freelist_free(flist, m1);
116 }
117
118 return nullptr;
119}
120
121void
122setup_test_case_1(const int64_t n)

Callers

nothing calls this directly

Calls 3

ink_freelist_newFunction · 0.85
memsetFunction · 0.85
ink_freelist_freeFunction · 0.85

Tested by

no test coverage detected