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

Function profiling_get_ctx

profiling.h:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static inline int profiling_get_ctx(profiling_ctx_t *ctx)
123{
124 profiling_handlers_t *handlers;
125
126 for (handlers = profiling_handlers; handlers; handlers = handlers->next)
127 if ((handlers->accepted_data_types & PROFILING_DATA_TYPE_SCRIPT) &&
128 handlers->get_ctx && handlers->get_ctx(ctx))
129 return 1;
130
131 return 0;
132}
133
134static inline int profiling_set_ctx(const profiling_ctx_t *ctx)
135{

Callers 1

t_handle_asyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected