| 191 | static int perf_indent; |
| 192 | |
| 193 | uint64_t trace_performance_enter(void) |
| 194 | { |
| 195 | uint64_t now; |
| 196 | |
| 197 | if (!trace_want(&trace_perf_key)) |
| 198 | return 0; |
| 199 | |
| 200 | now = getnanotime(); |
| 201 | perf_start_times[perf_indent] = now; |
| 202 | if (perf_indent + 1 < ARRAY_SIZE(perf_start_times)) |
| 203 | perf_indent++; |
| 204 | else |
| 205 | BUG("Too deep indentation"); |
| 206 | return now; |
| 207 | } |
| 208 | |
| 209 | static void trace_performance_vprintf_fl(const char *file, int line, |
| 210 | uint64_t nanos, const char *format, |
no test coverage detected