|
30 | 30 |
|
31 | 31 | #include <algorithm> |
32 | 32 | #include <iostream> |
33 | | -#include <set> |
34 | 33 | #include <string> |
35 | 34 | #include <cinttypes> |
36 | 35 | #include <numeric> |
@@ -210,8 +209,8 @@ enum MetricTypes { |
210 | 209 | // so that we can display driver and device metrics in the same plot |
211 | 210 | // without an if. |
212 | 211 | struct AllMetricsStore { |
213 | | - gsl::span<DeviceMetricsInfo const> metrics[TOTAL_TYPES_OF_METRICS]; |
214 | | - gsl::span<TopologyNodeInfo const> specs[TOTAL_TYPES_OF_METRICS]; |
| 212 | + std::span<DeviceMetricsInfo const> metrics[TOTAL_TYPES_OF_METRICS]; |
| 213 | + std::span<TopologyNodeInfo const> specs[TOTAL_TYPES_OF_METRICS]; |
215 | 214 | }; |
216 | 215 |
|
217 | 216 | void displaySparks( |
@@ -376,8 +375,8 @@ void displayDeviceMetrics(const char* label, |
376 | 375 | ImPlotAxisFlags axisFlags = 0; |
377 | 376 |
|
378 | 377 | for (size_t si = 0; si < TOTAL_TYPES_OF_METRICS; ++si) { |
379 | | - gsl::span<DeviceMetricsInfo const> metricsInfos = metricStore.metrics[si]; |
380 | | - gsl::span<TopologyNodeInfo const> specs = metricStore.specs[si]; |
| 378 | + std::span<DeviceMetricsInfo const> metricsInfos = metricStore.metrics[si]; |
| 379 | + std::span<TopologyNodeInfo const> specs = metricStore.specs[si]; |
381 | 380 | for (int di = 0; di < metricsInfos.size(); ++di) { |
382 | 381 | for (size_t mi = 0; mi < metricsInfos[di].metrics.size(); ++mi) { |
383 | 382 | if (state[gmi].visible == false) { |
@@ -1175,10 +1174,10 @@ std::function<void(void)> getGUIDebugger(std::vector<DeviceInfo> const& infos, |
1175 | 1174 |
|
1176 | 1175 | AllMetricsStore metricsStore; |
1177 | 1176 |
|
1178 | | - metricsStore.metrics[DEVICE_METRICS] = gsl::span(metricsInfos); |
1179 | | - metricsStore.metrics[DRIVER_METRICS] = gsl::span(&driverInfo.metrics, 1); |
1180 | | - metricsStore.specs[DEVICE_METRICS] = gsl::span(deviceNodesInfos); |
1181 | | - metricsStore.specs[DRIVER_METRICS] = gsl::span(driverNodesInfos); |
| 1177 | + metricsStore.metrics[DEVICE_METRICS] = std::span(metricsInfos); |
| 1178 | + metricsStore.metrics[DRIVER_METRICS] = std::span(&driverInfo.metrics, 1); |
| 1179 | + metricsStore.specs[DEVICE_METRICS] = std::span(deviceNodesInfos); |
| 1180 | + metricsStore.specs[DRIVER_METRICS] = std::span(driverNodesInfos); |
1182 | 1181 | displayMetrics(guiState, driverInfo, infos, metadata, controls, metricsStore); |
1183 | 1182 | displayDriverInfo(driverInfo, driverControl); |
1184 | 1183 |
|
|
0 commit comments