#include <string_view>
#include "wpi/hal/UsageReporting.h"
#include "wpi/util/string.hpp"
Go to the source code of this file.
◆ HAL_ReportUsage() [1/2]
Reports usage of a resource of interest.
Repeated calls for the same resource name replace the previous report.
- Parameters
-
| resource | the used resource name |
| instanceNumber | an index that identifies the resource instance |
| data | arbitrary associated data string |
◆ HAL_ReportUsage() [2/2]
Reports usage of a resource of interest.
Repeated calls for the same resource name replace the previous report.
- Parameters
-
| resource | the used resource name; convention is to suffix with "[instanceNum]" for multiple instances of the same resource |
| data | arbitrary associated data string |