Class UsageReporting
java.lang.Object
org.wpilib.util.UsageReporting
Utility functions for reporting resource usage.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidreportUsage(String resource, int instanceNumber, String data) Reports usage of a resource of interest.static voidreportUsage(String resource, String data) Reports usage of a resource of interest.static voidsetReportUsageImpl(BiConsumer<String, String> func) Sets the implementation used byreportUsage(String, String).
-
Method Details
-
reportUsage
-
reportUsage
Reports usage of a resource of interest. Repeated calls for the same resource name replace the previous report.- Parameters:
resource- the used resource nameinstanceNumber- an index that identifies the resource instancedata- arbitrary associated data string
-
setReportUsageImpl
Sets the implementation used byreportUsage(String, String).- Parameters:
func- function called by reportUsage(); pass null to restore the default no-op implementation
-