Skip to content

Commit 63a227b

Browse files
John Oxleyfacebook-github-bot
authored andcommitted
Add duration_ms percentiles
Summary: [This note](https://fb.workplace.com/notes/340378350526665/) shows how a quantile stat can be defined. I'm moving `accounting.duration_ms*` over to this so we get quantiles for "free". I can't figure out how to stop generating the all time percentiles. I don't think they're useful and could be misleading in the future. Differential Revision: D68840920 fbshipit-source-id: 1684783e7ec52afbce28f60bcb3147b3da873e64
1 parent 5b17c49 commit 63a227b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fb303/ExportType.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ struct QuantileConsts {
128128
static constexpr const std::array<double, 2> kP0_P100{{.0, 1}};
129129
static constexpr const std::array<double, 4> kP25_P50_P75_P95{
130130
{.25, 0.5, 0.75, 0.95}};
131+
static constexpr const std::array<double, 5> kP25_P50_P75_P95_P99{
132+
{.25, 0.5, 0.75, 0.95, 0.99}};
131133
};
132134

133135
struct SlidingWindowPeriodConsts {

0 commit comments

Comments
 (0)