]> git.cworth.org Git - fips/blobdiff - metrics.h
Simplify metrics interface by dropping metrics_counter_new
[fips] / metrics.h
index 2d93d908d39026cf1fd4b0b8fda9bd199d24f0ef..8b688678d2f5601d1471d67289418ff13f5fc8a4 100644 (file)
--- a/metrics.h
+++ b/metrics.h
 #ifndef METRICS_H
 #define METRICS_H
 
-/* Add a new counter to the metrics tracking state.
+/* Start accumulating GPU time.
  *
- * The value accumulated in this counter be accounted against the
+ * The time accumulated will be accounted against the
  * current program (as set with metrics_set_current_program).
- *
- * Returns: A counter ID suitable for use with metrics_counter_start
- * and metrics_counter_stop.
  */
-unsigned
-metrics_counter_new (void);
-
-/* Start accumulating GPU time spent into the given counter. */
 void
-metrics_counter_start (unsigned counter);
+metrics_counter_start (void);
 
 /* Stop accumulating GPU time (stops the most-recently started counter) */
 void