1 | import Histogram, { HistogramSummary } from "../Histogram";
|
---|
2 | import { BuildRequest } from "../HistogramBuilder";
|
---|
3 | export declare const webAssemblyAvailable: boolean;
|
---|
4 | export declare const initWebAssembly: () => Promise<void>;
|
---|
5 | export declare const initWebAssemblySync: () => void;
|
---|
6 | export declare const webAssemblyReady: () => boolean;
|
---|
7 | export declare class WasmHistogram implements Histogram {
|
---|
8 | private _wasmHistogram;
|
---|
9 | private _remoteHistogramClass;
|
---|
10 | tag: string;
|
---|
11 | constructor(_wasmHistogram: any, _remoteHistogramClass: string);
|
---|
12 | static build(request?: BuildRequest): WasmHistogram;
|
---|
13 | static decode(data: Uint8Array, bitBucketSize?: 8 | 16 | 32 | 64 | "packed", minBarForHighestTrackableValue?: number): Histogram;
|
---|
14 | get numberOfSignificantValueDigits(): number;
|
---|
15 | get autoResize(): boolean;
|
---|
16 | set autoResize(resize: boolean);
|
---|
17 | get highestTrackableValue(): number;
|
---|
18 | set highestTrackableValue(value: number);
|
---|
19 | get startTimeStampMsec(): number;
|
---|
20 | set startTimeStampMsec(value: number);
|
---|
21 | get endTimeStampMsec(): number;
|
---|
22 | set endTimeStampMsec(value: number);
|
---|
23 | get totalCount(): number;
|
---|
24 | get stdDeviation(): number;
|
---|
25 | get mean(): number;
|
---|
26 | get estimatedFootprintInBytes(): number;
|
---|
27 | get minNonZeroValue(): number;
|
---|
28 | get maxValue(): number;
|
---|
29 | recordValue(value: number): void;
|
---|
30 | recordValueWithCount(value: number, count: number): void;
|
---|
31 | recordValueWithExpectedInterval(value: number, expectedIntervalBetweenValueSamples: number): void;
|
---|
32 | getValueAtPercentile(percentile: number): number;
|
---|
33 | outputPercentileDistribution(percentileTicksPerHalfDistance?: number, outputValueUnitScalingRatio?: number, useCsvFormat?: boolean): string;
|
---|
34 | private isDestroyed;
|
---|
35 | get summary(): HistogramSummary;
|
---|
36 | toJSON(): HistogramSummary;
|
---|
37 | toString(): string;
|
---|
38 | inspect(): string;
|
---|
39 | addWhileCorrectingForCoordinatedOmission(otherHistogram: WasmHistogram, expectedIntervalBetweenValueSamples: number): void;
|
---|
40 | copyCorrectedForCoordinatedOmission(expectedIntervalBetweenValueSamples: number): WasmHistogram;
|
---|
41 | add(otherHistogram: WasmHistogram): void;
|
---|
42 | subtract(otherHistogram: WasmHistogram): void;
|
---|
43 | encode(): Uint8Array;
|
---|
44 | reset(): void;
|
---|
45 | destroy(): void;
|
---|
46 | }
|
---|