diff options
| author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-10-10 17:20:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-10 17:20:30 +0200 |
| commit | 5a8a989b7815023f33a1e3183a55cc8999af5d98 (patch) | |
| tree | d15619ed83a2965f17dc10a78c9072f34d393009 /cli/dts | |
| parent | f2ac7ff23a2ae4925f4ca32ffd61c923c481ef4e (diff) | |
refactor(metrics): move to core (#12386)
Avoids overhead of wrapping ops (and allocs when inspecting async-op futures)
Diffstat (limited to 'cli/dts')
| -rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 6 | ||||
| -rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 18 |
2 files changed, 5 insertions, 19 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index e1c23f10f..4d3dfe0d3 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -1792,7 +1792,7 @@ declare namespace Deno { * Requires `allow-write` permission. */ export function truncate(name: string, len?: number): Promise<void>; - export interface Metrics { + export interface OpMetrics { opsDispatched: number; opsDispatchedSync: number; opsDispatchedAsync: number; @@ -1806,6 +1806,10 @@ declare namespace Deno { bytesReceived: number; } + export interface Metrics extends OpMetrics { + ops: Record<string, OpMetrics>; + } + /** Receive metrics from the privileged side of Deno. This is primarily used * in the development of Deno. 'Ops', also called 'bindings', are the go-between * between Deno JavaScript and Deno Rust. diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index b2fe0d9c7..a7f4f2ef0 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -804,24 +804,6 @@ declare namespace Deno { */ export function sleepSync(millis: number): void; - export interface Metrics extends OpMetrics { - ops: Record<string, OpMetrics>; - } - - export interface OpMetrics { - opsDispatched: number; - opsDispatchedSync: number; - opsDispatchedAsync: number; - opsDispatchedAsyncUnref: number; - opsCompleted: number; - opsCompletedSync: number; - opsCompletedAsync: number; - opsCompletedAsyncUnref: number; - bytesSentControl: number; - bytesSentData: number; - bytesReceived: number; - } - /** **UNSTABLE**: New option, yet to be vetted. */ export interface TestDefinition { /** Specifies the permissions that should be used to run the test. |
