| 172 | } |
| 173 | |
| 174 | bool |
| 175 | initializeMetrics(PrefetchMetricInfo metrics[], const PrefetchConfig &config) |
| 176 | { |
| 177 | bool status = true; |
| 178 | for (int i = FETCH_ACTIVE; i < FETCHES_MAX_METRICS; i++) { |
| 179 | if (-1 == metrics[i].id) { |
| 180 | status = createStat(config.getMetricsPrefix(), config.getNameSpace(), nullptr, getPrefetchMetricsNames(i), metrics[i].type, |
| 181 | metrics[i].id); |
| 182 | } else { |
| 183 | PrefetchDebug("metric %s already initialized", getPrefetchMetricsNames(i)); |
| 184 | } |
| 185 | } |
| 186 | return status; |
| 187 | } |
| 188 | |
| 189 | bool |
| 190 | initializeLog(TSTextLogObject &log, const PrefetchConfig &config) |
no test coverage detected