| 258 | }; |
| 259 | |
| 260 | int 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 | |
| 279 | int register_profiling_handler(profiling_handlers_t *handlers) |
| 280 | { |
nothing calls this directly
no test coverage detected