MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / init_profiling

Function init_profiling

profiling.c:260–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258};
259
260int init_profiling(void)
261{
262 memset(profiling_events, 0, sizeof(profiling_events));
263 profiling_events[0].id = EVI_ERROR;
264 profiling_events[1].id = EVI_ERROR;
265
266 if (init_profiling_event(&profiling_events[0], &ev_name_script) < 0)
267 return -1;
268 if (init_profiling_event(&profiling_events[1], &ev_name_proc) < 0)
269 return -1;
270
271 if (register_profiling_handler(&profiling_event_handler) < 0) {
272 LM_ERR("failed to register profiling event handler\n");
273 return -1;
274 }
275
276 return 0;
277}
278
279int register_profiling_handler(profiling_handlers_t *handlers)
280{

Callers

nothing calls this directly

Calls 2

init_profiling_eventFunction · 0.85

Tested by

no test coverage detected