(label: string, metric: Record<string, number>)
| 103 | } |
| 104 | |
| 105 | function logMetric(label: string, metric: Record<string, number>): void { |
| 106 | if (process.env.TN_PERF_LOG === "1") { |
| 107 | process.stderr.write(`[filter-cache-perf] ${label} ${JSON.stringify(metric)}\n`); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | function queryWithConditions(children: FilterQuery["children"]): FilterQuery { |
| 112 | return { |
no outgoing calls
no test coverage detected