Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
971 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.toSummary = exports.NO_TAG = void 0;
|
---|
4 | const formatters_1 = require("./formatters");
|
---|
5 | exports.NO_TAG = "NO TAG";
|
---|
6 | exports.toSummary = (histogram) => {
|
---|
7 | const { totalCount, maxValue, numberOfSignificantValueDigits } = histogram;
|
---|
8 | const round = formatters_1.keepSignificantDigits(numberOfSignificantValueDigits);
|
---|
9 | return {
|
---|
10 | p50: round(histogram.getValueAtPercentile(50)),
|
---|
11 | p75: round(histogram.getValueAtPercentile(75)),
|
---|
12 | p90: round(histogram.getValueAtPercentile(90)),
|
---|
13 | p97_5: round(histogram.getValueAtPercentile(97.5)),
|
---|
14 | p99: round(histogram.getValueAtPercentile(99)),
|
---|
15 | p99_9: round(histogram.getValueAtPercentile(99.9)),
|
---|
16 | p99_99: round(histogram.getValueAtPercentile(99.99)),
|
---|
17 | p99_999: round(histogram.getValueAtPercentile(99.999)),
|
---|
18 | max: maxValue,
|
---|
19 | totalCount,
|
---|
20 | };
|
---|
21 | };
|
---|
22 | //# sourceMappingURL=Histogram.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.