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

Function profiling_proc_start

profiling.h:227–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226
227static inline void profiling_proc_start(enum profiling_proc_level level,
228 int with_next)
229{
230 profiling_handlers_t *handlers;
231
232 if (!profiling_proc_level_enabled(level))
233 return;
234
235 proc_depth = 0;
236 if (with_next) {
237 profiling_proc_pending_stack[proc_depth].name =
238 pt[process_no].desc;
239 profiling_proc_pending_stack[proc_depth].file = NULL;
240 profiling_proc_pending_stack[proc_depth].line = 0;
241 profiling_proc_pending_stack[proc_depth].is_start = 1;
242 profiling_proc_pending_no = 1;
243 return;
244 }
245
246 for (handlers = profiling_handlers; handlers; handlers = handlers->next)
247 if ((handlers->accepted_data_types & PROFILING_DATA_TYPE_PROC) &&
248 handlers->on_start)
249 handlers->on_start(PROFILING_DATA_TYPE_PROC, pt[process_no].desc,
250 pt[process_no].type, proc_depth, NULL);
251}
252
253
254static inline void profiling_proc_end(enum profiling_proc_level level,

Callers 9

handle_ioFunction · 0.85
answer_to_connectionFunction · 0.85
mi_fifo_callbackFunction · 0.85
rtpengine_io_callbackFunction · 0.85
mi_datagram_callbackFunction · 0.85
rtpproxy_io_callbackFunction · 0.85
rtpproxy_io_new_callbackFunction · 0.85
handle_ioFunction · 0.85
handle_ioFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected