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

Commit b467a23

Browse files
committed
Added count_ps to timers
1 parent fd95885 commit b467a23

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/metric.c

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

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

0 commit comments

Comments
 (0)