Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit dad4b3b

Browse files
author
Vicent Martí
authored
Merge pull request #47 from mhr3/count-ps
Added count_ps to timers
2 parents fd95885 + 8a8dccb commit dad4b3b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/metric.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ histogram__sample(struct brubeck_metric *metric, brubeck_sample_cb sample, void
182182
sample(key, hsample.count, opaque);
183183
}
184184

185+
WITH_SUFFIX(".count_ps") {
186+
struct brubeck_backend *backend = opaque;
187+
sample(key, hsample.count / (double)backend->sample_freq, opaque);
188+
}
189+
185190
/* if there have been no metrics during this sampling period,
186191
* we don't need to report any of the histogram samples */
187192
if (hsample.count == 0.0)

0 commit comments

Comments
 (0)