Skip to content

Commit

Permalink
doc: perf_counters.rst fix trivial typo
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
  • Loading branch information
badone committed Jul 14, 2016
1 parent 0f58056 commit cf649d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/dev/perf_counters.rst
Expand Up @@ -44,7 +44,7 @@ The ``perf schema`` command dumps a json description of which values are availab
| 8 | counter (vs gauge) |
+------+-------------------------------------+

Every value with have either bit 1 or 2 set to indicate the type (float or integer). If bit 8 is set (counter), the reader may want to subtract off the previously read value to get the delta during the previous interval.
Every value will have either bit 1 or 2 set to indicate the type (float or integer). If bit 8 is set (counter), the reader may want to subtract off the previously read value to get the delta during the previous interval.

If bit 4 is set (average), there will be two values to read, a sum and a count. If it is a counter, the average for the previous interval would be sum delta (since the previous read) divided by the count delta. Alternatively, dividing the values outright would provide the lifetime average value. Normally these are used to measure latencies (number of requests and a sum of request latencies), and the average for the previous interval is what is interesting.

Expand Down

0 comments on commit cf649d6

Please sign in to comment.