| 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) |
| 89 | { |
| 90 | profiling_handlers_t *handlers; |
| 91 | for (handlers = profiling_handlers; handlers; handlers = handlers->next) |
| 92 | if ((handlers->accepted_data_types & PROFILING_DATA_TYPE_SCRIPT) && |
| 93 | handlers->on_end) |
| 94 | handlers->on_end(PROFILING_DATA_TYPE_SCRIPT, route_name, |
| 95 | route_type, depth, status, msg); |
| 96 | } |
| 97 | |
| 98 | static inline void profiling_route_enter(struct sip_msg *msg, int route_type, |
| 99 | const char *route_name, const char *file, int line, |