| 74 | } |
| 75 | |
| 76 | static inline void profiling_msg_start(struct sip_msg *msg, int route_type, |
| 77 | const char *route_name, int depth) |
| 78 | { |
| 79 | profiling_handlers_t *handlers; |
| 80 | for (handlers = profiling_handlers; handlers; handlers = handlers->next) |
| 81 | if ((handlers->accepted_data_types & PROFILING_DATA_TYPE_SCRIPT) && |
| 82 | handlers->on_start) |
| 83 | handlers->on_start(PROFILING_DATA_TYPE_SCRIPT, route_name, |
| 84 | route_type, depth, msg); |
| 85 | } |
| 86 | |
| 87 | static inline void profiling_msg_end(struct sip_msg *msg, int route_type, |
| 88 | const char *route_name, int depth, int status) |