@aligent/cdk-prerender-proxy 0.2.5-experimental2 → 0.2.5-experimental4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/error-response-construct.d.ts +1 -0
- package/lib/error-response-construct.js +5 -4
- package/lib/prerender-cf-cache-control-construct.d.ts +1 -0
- package/lib/prerender-cf-cache-control-construct.js +5 -4
- package/lib/prerender-check-construct.d.ts +1 -0
- package/lib/prerender-check-construct.js +5 -4
- package/lib/prerender-construct.d.ts +1 -0
- package/lib/prerender-construct.js +5 -4
- package/package.json +3 -3
- package/lib/handlers/cache-control.ts +0 -21
- package/lib/handlers/error-response.ts +0 -51
- package/lib/handlers/node_modules/.package-lock.json +0 -55
- package/lib/handlers/node_modules/@types/aws-lambda/LICENSE +0 -21
- package/lib/handlers/node_modules/@types/aws-lambda/README.md +0 -16
- package/lib/handlers/node_modules/@types/aws-lambda/common/api-gateway.d.ts +0 -79
- package/lib/handlers/node_modules/@types/aws-lambda/common/cloudfront.d.ts +0 -79
- package/lib/handlers/node_modules/@types/aws-lambda/handler.d.ts +0 -171
- package/lib/handlers/node_modules/@types/aws-lambda/index.d.ts +0 -85
- package/lib/handlers/node_modules/@types/aws-lambda/package.json +0 -210
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/alb.d.ts +0 -48
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.ts +0 -174
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts +0 -187
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.ts +0 -51
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.ts +0 -68
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.ts +0 -20
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.ts +0 -21
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.ts +0 -8
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.ts +0 -37
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.ts +0 -104
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.ts +0 -31
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.ts +0 -32
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.ts +0 -23
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.ts +0 -11
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/codepipeline.d.ts +0 -55
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/_common.d.ts +0 -41
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.ts +0 -22
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.ts +0 -86
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.ts +0 -44
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.ts +0 -21
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +0 -119
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.ts +0 -15
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.ts +0 -22
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.ts +0 -15
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.ts +0 -31
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.ts +0 -45
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.ts +0 -39
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.ts +0 -20
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.ts +0 -65
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.ts +0 -45
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/eventbridge.d.ts +0 -18
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/iot.d.ts +0 -28
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.ts +0 -45
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.ts +0 -28
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/lex.d.ts +0 -116
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/msk.d.ts +0 -21
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/s3-batch.d.ts +0 -41
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/s3.d.ts +0 -60
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/ses.d.ts +0 -103
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/sns.d.ts +0 -38
- package/lib/handlers/node_modules/@types/aws-lambda/trigger/sqs.d.ts +0 -46
- package/lib/handlers/node_modules/@types/node/LICENSE +0 -21
- package/lib/handlers/node_modules/@types/node/README.md +0 -16
- package/lib/handlers/node_modules/@types/node/assert/strict.d.ts +0 -4
- package/lib/handlers/node_modules/@types/node/assert.d.ts +0 -124
- package/lib/handlers/node_modules/@types/node/async_hooks.d.ts +0 -226
- package/lib/handlers/node_modules/@types/node/base.d.ts +0 -19
- package/lib/handlers/node_modules/@types/node/buffer.d.ts +0 -84
- package/lib/handlers/node_modules/@types/node/child_process.d.ts +0 -526
- package/lib/handlers/node_modules/@types/node/cluster.d.ts +0 -262
- package/lib/handlers/node_modules/@types/node/console.d.ts +0 -133
- package/lib/handlers/node_modules/@types/node/constants.d.ts +0 -13
- package/lib/handlers/node_modules/@types/node/crypto.d.ts +0 -1580
- package/lib/handlers/node_modules/@types/node/dgram.d.ts +0 -141
- package/lib/handlers/node_modules/@types/node/diagnostic_channel.d.ts +0 -34
- package/lib/handlers/node_modules/@types/node/dns/promises.d.ts +0 -97
- package/lib/handlers/node_modules/@types/node/dns.d.ts +0 -322
- package/lib/handlers/node_modules/@types/node/domain.d.ts +0 -24
- package/lib/handlers/node_modules/@types/node/events.d.ts +0 -93
- package/lib/handlers/node_modules/@types/node/fs/promises.d.ts +0 -592
- package/lib/handlers/node_modules/@types/node/fs.d.ts +0 -2239
- package/lib/handlers/node_modules/@types/node/globals.d.ts +0 -655
- package/lib/handlers/node_modules/@types/node/globals.global.d.ts +0 -1
- package/lib/handlers/node_modules/@types/node/http.d.ts +0 -434
- package/lib/handlers/node_modules/@types/node/http2.d.ts +0 -976
- package/lib/handlers/node_modules/@types/node/https.d.ts +0 -36
- package/lib/handlers/node_modules/@types/node/index.d.ts +0 -58
- package/lib/handlers/node_modules/@types/node/inspector.d.ts +0 -3041
- package/lib/handlers/node_modules/@types/node/module.d.ts +0 -52
- package/lib/handlers/node_modules/@types/node/net.d.ts +0 -326
- package/lib/handlers/node_modules/@types/node/os.d.ts +0 -239
- package/lib/handlers/node_modules/@types/node/package.json +0 -232
- package/lib/handlers/node_modules/@types/node/path.d.ts +0 -163
- package/lib/handlers/node_modules/@types/node/perf_hooks.d.ts +0 -310
- package/lib/handlers/node_modules/@types/node/process.d.ts +0 -461
- package/lib/handlers/node_modules/@types/node/punycode.d.ts +0 -75
- package/lib/handlers/node_modules/@types/node/querystring.d.ts +0 -28
- package/lib/handlers/node_modules/@types/node/readline.d.ts +0 -192
- package/lib/handlers/node_modules/@types/node/repl.d.ts +0 -395
- package/lib/handlers/node_modules/@types/node/stream/promises.d.ts +0 -67
- package/lib/handlers/node_modules/@types/node/stream.d.ts +0 -471
- package/lib/handlers/node_modules/@types/node/string_decoder.d.ts +0 -7
- package/lib/handlers/node_modules/@types/node/timers/promises.d.ts +0 -21
- package/lib/handlers/node_modules/@types/node/timers.d.ts +0 -27
- package/lib/handlers/node_modules/@types/node/tls.d.ts +0 -793
- package/lib/handlers/node_modules/@types/node/trace_events.d.ts +0 -61
- package/lib/handlers/node_modules/@types/node/ts3.6/assert.d.ts +0 -98
- package/lib/handlers/node_modules/@types/node/ts3.6/base.d.ts +0 -68
- package/lib/handlers/node_modules/@types/node/ts3.6/index.d.ts +0 -7
- package/lib/handlers/node_modules/@types/node/tty.d.ts +0 -66
- package/lib/handlers/node_modules/@types/node/url.d.ts +0 -116
- package/lib/handlers/node_modules/@types/node/util/types.d.ts +0 -53
- package/lib/handlers/node_modules/@types/node/util.d.ts +0 -156
- package/lib/handlers/node_modules/@types/node/v8.d.ts +0 -198
- package/lib/handlers/node_modules/@types/node/vm.d.ts +0 -152
- package/lib/handlers/node_modules/@types/node/wasi.d.ts +0 -86
- package/lib/handlers/node_modules/@types/node/worker_threads.d.ts +0 -282
- package/lib/handlers/node_modules/@types/node/zlib.d.ts +0 -361
- package/lib/handlers/node_modules/axios/CHANGELOG.md +0 -685
- package/lib/handlers/node_modules/axios/LICENSE +0 -19
- package/lib/handlers/node_modules/axios/README.md +0 -800
- package/lib/handlers/node_modules/axios/UPGRADE_GUIDE.md +0 -162
- package/lib/handlers/node_modules/axios/dist/axios.js +0 -1756
- package/lib/handlers/node_modules/axios/dist/axios.map +0 -1
- package/lib/handlers/node_modules/axios/dist/axios.min.js +0 -3
- package/lib/handlers/node_modules/axios/dist/axios.min.map +0 -1
- package/lib/handlers/node_modules/axios/index.d.ts +0 -161
- package/lib/handlers/node_modules/axios/index.js +0 -1
- package/lib/handlers/node_modules/axios/lib/adapters/README.md +0 -37
- package/lib/handlers/node_modules/axios/lib/adapters/http.js +0 -303
- package/lib/handlers/node_modules/axios/lib/adapters/xhr.js +0 -179
- package/lib/handlers/node_modules/axios/lib/axios.js +0 -56
- package/lib/handlers/node_modules/axios/lib/cancel/Cancel.js +0 -19
- package/lib/handlers/node_modules/axios/lib/cancel/CancelToken.js +0 -57
- package/lib/handlers/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/lib/handlers/node_modules/axios/lib/core/Axios.js +0 -95
- package/lib/handlers/node_modules/axios/lib/core/InterceptorManager.js +0 -52
- package/lib/handlers/node_modules/axios/lib/core/README.md +0 -7
- package/lib/handlers/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/lib/handlers/node_modules/axios/lib/core/createError.js +0 -18
- package/lib/handlers/node_modules/axios/lib/core/dispatchRequest.js +0 -79
- package/lib/handlers/node_modules/axios/lib/core/enhanceError.js +0 -42
- package/lib/handlers/node_modules/axios/lib/core/mergeConfig.js +0 -87
- package/lib/handlers/node_modules/axios/lib/core/settle.js +0 -25
- package/lib/handlers/node_modules/axios/lib/core/transformData.js +0 -20
- package/lib/handlers/node_modules/axios/lib/defaults.js +0 -98
- package/lib/handlers/node_modules/axios/lib/helpers/README.md +0 -7
- package/lib/handlers/node_modules/axios/lib/helpers/bind.js +0 -11
- package/lib/handlers/node_modules/axios/lib/helpers/buildURL.js +0 -70
- package/lib/handlers/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/lib/handlers/node_modules/axios/lib/helpers/cookies.js +0 -53
- package/lib/handlers/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
- package/lib/handlers/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/lib/handlers/node_modules/axios/lib/helpers/isAxiosError.js +0 -11
- package/lib/handlers/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
- package/lib/handlers/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/lib/handlers/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/lib/handlers/node_modules/axios/lib/helpers/spread.js +0 -27
- package/lib/handlers/node_modules/axios/lib/utils.js +0 -351
- package/lib/handlers/node_modules/axios/package.json +0 -86
- package/lib/handlers/node_modules/buffer-from/LICENSE +0 -21
- package/lib/handlers/node_modules/buffer-from/index.js +0 -69
- package/lib/handlers/node_modules/buffer-from/package.json +0 -19
- package/lib/handlers/node_modules/buffer-from/readme.md +0 -69
- package/lib/handlers/node_modules/follow-redirects/LICENSE +0 -18
- package/lib/handlers/node_modules/follow-redirects/README.md +0 -148
- package/lib/handlers/node_modules/follow-redirects/debug.js +0 -14
- package/lib/handlers/node_modules/follow-redirects/http.js +0 -1
- package/lib/handlers/node_modules/follow-redirects/https.js +0 -1
- package/lib/handlers/node_modules/follow-redirects/index.js +0 -531
- package/lib/handlers/node_modules/follow-redirects/package.json +0 -59
- package/lib/handlers/node_modules/source-map/CHANGELOG.md +0 -301
- package/lib/handlers/node_modules/source-map/LICENSE +0 -28
- package/lib/handlers/node_modules/source-map/README.md +0 -742
- package/lib/handlers/node_modules/source-map/dist/source-map.debug.js +0 -3234
- package/lib/handlers/node_modules/source-map/dist/source-map.js +0 -3233
- package/lib/handlers/node_modules/source-map/dist/source-map.min.js +0 -2
- package/lib/handlers/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/lib/handlers/node_modules/source-map/lib/array-set.js +0 -121
- package/lib/handlers/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/lib/handlers/node_modules/source-map/lib/base64.js +0 -67
- package/lib/handlers/node_modules/source-map/lib/binary-search.js +0 -111
- package/lib/handlers/node_modules/source-map/lib/mapping-list.js +0 -79
- package/lib/handlers/node_modules/source-map/lib/quick-sort.js +0 -114
- package/lib/handlers/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/lib/handlers/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/lib/handlers/node_modules/source-map/lib/source-node.js +0 -413
- package/lib/handlers/node_modules/source-map/lib/util.js +0 -488
- package/lib/handlers/node_modules/source-map/package.json +0 -73
- package/lib/handlers/node_modules/source-map/source-map.d.ts +0 -98
- package/lib/handlers/node_modules/source-map/source-map.js +0 -8
- package/lib/handlers/node_modules/source-map-support/LICENSE.md +0 -21
- package/lib/handlers/node_modules/source-map-support/README.md +0 -284
- package/lib/handlers/node_modules/source-map-support/browser-source-map-support.js +0 -114
- package/lib/handlers/node_modules/source-map-support/package.json +0 -31
- package/lib/handlers/node_modules/source-map-support/register.js +0 -1
- package/lib/handlers/node_modules/source-map-support/source-map-support.js +0 -604
- package/lib/handlers/package-lock.json +0 -108
- package/lib/handlers/package.json +0 -13
- package/lib/handlers/prerender-check.ts +0 -27
- package/lib/handlers/prerender.ts +0 -43
- package/lib/handlers/tsconfig.json +0 -24
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
declare module 'perf_hooks' {
|
|
2
|
-
import { AsyncResource } from 'async_hooks';
|
|
3
|
-
|
|
4
|
-
type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
|
|
5
|
-
|
|
6
|
-
class PerformanceEntry {
|
|
7
|
-
protected constructor();
|
|
8
|
-
/**
|
|
9
|
-
* The total number of milliseconds elapsed for this entry.
|
|
10
|
-
* This value will not be meaningful for all Performance Entry types.
|
|
11
|
-
*/
|
|
12
|
-
readonly duration: number;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The name of the performance entry.
|
|
16
|
-
*/
|
|
17
|
-
readonly name: string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The high resolution millisecond timestamp marking the starting time of the Performance Entry.
|
|
21
|
-
*/
|
|
22
|
-
readonly startTime: number;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The type of the performance entry.
|
|
26
|
-
* Currently it may be one of: 'node', 'mark', 'measure', 'gc', or 'function'.
|
|
27
|
-
*/
|
|
28
|
-
readonly entryType: EntryType;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies
|
|
32
|
-
* the type of garbage collection operation that occurred.
|
|
33
|
-
* See perf_hooks.constants for valid values.
|
|
34
|
-
*/
|
|
35
|
-
readonly kind?: number;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
|
|
39
|
-
* property contains additional information about garbage collection operation.
|
|
40
|
-
* See perf_hooks.constants for valid values.
|
|
41
|
-
*/
|
|
42
|
-
readonly flags?: number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
class PerformanceNodeTiming extends PerformanceEntry {
|
|
46
|
-
/**
|
|
47
|
-
* The high resolution millisecond timestamp at which the Node.js process completed bootstrap.
|
|
48
|
-
*/
|
|
49
|
-
readonly bootstrapComplete: number;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The high resolution millisecond timestamp at which the Node.js process completed bootstrapping.
|
|
53
|
-
* If bootstrapping has not yet finished, the property has the value of -1.
|
|
54
|
-
*/
|
|
55
|
-
readonly environment: number;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The high resolution millisecond timestamp at which the Node.js environment was initialized.
|
|
59
|
-
*/
|
|
60
|
-
readonly idleTime: number;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The high resolution millisecond timestamp of the amount of time the event loop has been idle
|
|
64
|
-
* within the event loop's event provider (e.g. `epoll_wait`). This does not take CPU usage
|
|
65
|
-
* into consideration. If the event loop has not yet started (e.g., in the first tick of the main script),
|
|
66
|
-
* the property has the value of 0.
|
|
67
|
-
*/
|
|
68
|
-
readonly loopExit: number;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* The high resolution millisecond timestamp at which the Node.js event loop started.
|
|
72
|
-
* If the event loop has not yet started (e.g., in the first tick of the main script), the property has the value of -1.
|
|
73
|
-
*/
|
|
74
|
-
readonly loopStart: number;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The high resolution millisecond timestamp at which the V8 platform was initialized.
|
|
78
|
-
*/
|
|
79
|
-
readonly v8Start: number;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
interface EventLoopUtilization {
|
|
83
|
-
idle: number;
|
|
84
|
-
active: number;
|
|
85
|
-
utilization: number;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @param util1 The result of a previous call to eventLoopUtilization()
|
|
90
|
-
* @param util2 The result of a previous call to eventLoopUtilization() prior to util1
|
|
91
|
-
*/
|
|
92
|
-
type EventLoopUtilityFunction = (
|
|
93
|
-
util1?: EventLoopUtilization,
|
|
94
|
-
util2?: EventLoopUtilization,
|
|
95
|
-
) => EventLoopUtilization;
|
|
96
|
-
|
|
97
|
-
interface Performance {
|
|
98
|
-
/**
|
|
99
|
-
* If name is not provided, removes all PerformanceMark objects from the Performance Timeline.
|
|
100
|
-
* If name is provided, removes only the named mark.
|
|
101
|
-
* @param name
|
|
102
|
-
*/
|
|
103
|
-
clearMarks(name?: string): void;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Creates a new PerformanceMark entry in the Performance Timeline.
|
|
107
|
-
* A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark',
|
|
108
|
-
* and whose performanceEntry.duration is always 0.
|
|
109
|
-
* Performance marks are used to mark specific significant moments in the Performance Timeline.
|
|
110
|
-
* @param name
|
|
111
|
-
*/
|
|
112
|
-
mark(name?: string): void;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Creates a new PerformanceMeasure entry in the Performance Timeline.
|
|
116
|
-
* A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
|
|
117
|
-
* and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark.
|
|
118
|
-
*
|
|
119
|
-
* The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify
|
|
120
|
-
* any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist,
|
|
121
|
-
* then startMark is set to timeOrigin by default.
|
|
122
|
-
*
|
|
123
|
-
* The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp
|
|
124
|
-
* properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown.
|
|
125
|
-
* @param name
|
|
126
|
-
* @param startMark
|
|
127
|
-
* @param endMark
|
|
128
|
-
*/
|
|
129
|
-
measure(name: string, startMark?: string, endMark?: string): void;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones.
|
|
133
|
-
*/
|
|
134
|
-
readonly nodeTiming: PerformanceNodeTiming;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* @return the current high resolution millisecond timestamp
|
|
138
|
-
*/
|
|
139
|
-
now(): number;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The timeOrigin specifies the high resolution millisecond timestamp from which all performance metric durations are measured.
|
|
143
|
-
*/
|
|
144
|
-
readonly timeOrigin: number;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Wraps a function within a new function that measures the running time of the wrapped function.
|
|
148
|
-
* A PerformanceObserver must be subscribed to the 'function' event type in order for the timing details to be accessed.
|
|
149
|
-
* @param fn
|
|
150
|
-
*/
|
|
151
|
-
timerify<T extends (...optionalParams: any[]) => any>(fn: T): T;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time.
|
|
155
|
-
* It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait).
|
|
156
|
-
* No other CPU idle time is taken into consideration.
|
|
157
|
-
*/
|
|
158
|
-
eventLoopUtilization: EventLoopUtilityFunction;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
interface PerformanceObserverEntryList {
|
|
162
|
-
/**
|
|
163
|
-
* @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime.
|
|
164
|
-
*/
|
|
165
|
-
getEntries(): PerformanceEntry[];
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* @return a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
169
|
-
* whose performanceEntry.name is equal to name, and optionally, whose performanceEntry.entryType is equal to type.
|
|
170
|
-
*/
|
|
171
|
-
getEntriesByName(name: string, type?: EntryType): PerformanceEntry[];
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @return Returns a list of PerformanceEntry objects in chronological order with respect to performanceEntry.startTime
|
|
175
|
-
* whose performanceEntry.entryType is equal to type.
|
|
176
|
-
*/
|
|
177
|
-
getEntriesByType(type: EntryType): PerformanceEntry[];
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void;
|
|
181
|
-
|
|
182
|
-
class PerformanceObserver extends AsyncResource {
|
|
183
|
-
constructor(callback: PerformanceObserverCallback);
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Disconnects the PerformanceObserver instance from all notifications.
|
|
187
|
-
*/
|
|
188
|
-
disconnect(): void;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Subscribes the PerformanceObserver instance to notifications of new PerformanceEntry instances identified by options.entryTypes.
|
|
192
|
-
* When options.buffered is false, the callback will be invoked once for every PerformanceEntry instance.
|
|
193
|
-
* Property buffered defaults to false.
|
|
194
|
-
* @param options
|
|
195
|
-
*/
|
|
196
|
-
observe(options: { entryTypes: ReadonlyArray<EntryType>; buffered?: boolean }): void;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
namespace constants {
|
|
200
|
-
const NODE_PERFORMANCE_GC_MAJOR: number;
|
|
201
|
-
const NODE_PERFORMANCE_GC_MINOR: number;
|
|
202
|
-
const NODE_PERFORMANCE_GC_INCREMENTAL: number;
|
|
203
|
-
const NODE_PERFORMANCE_GC_WEAKCB: number;
|
|
204
|
-
|
|
205
|
-
const NODE_PERFORMANCE_GC_FLAGS_NO: number;
|
|
206
|
-
const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number;
|
|
207
|
-
const NODE_PERFORMANCE_GC_FLAGS_FORCED: number;
|
|
208
|
-
const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number;
|
|
209
|
-
const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number;
|
|
210
|
-
const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number;
|
|
211
|
-
const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
const performance: Performance;
|
|
215
|
-
|
|
216
|
-
interface EventLoopMonitorOptions {
|
|
217
|
-
/**
|
|
218
|
-
* The sampling rate in milliseconds.
|
|
219
|
-
* Must be greater than zero.
|
|
220
|
-
* @default 10
|
|
221
|
-
*/
|
|
222
|
-
resolution?: number;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
interface Histogram {
|
|
226
|
-
/**
|
|
227
|
-
* A `Map` object detailing the accumulated percentile distribution.
|
|
228
|
-
*/
|
|
229
|
-
readonly percentiles: Map<number, number>;
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* The number of times the event loop delay exceeded the maximum 1 hour eventloop delay threshold.
|
|
233
|
-
*/
|
|
234
|
-
readonly exceeds: number;
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* The minimum recorded event loop delay.
|
|
238
|
-
*/
|
|
239
|
-
readonly min: number;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* The maximum recorded event loop delay.
|
|
243
|
-
*/
|
|
244
|
-
readonly max: number;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* The mean of the recorded event loop delays.
|
|
248
|
-
*/
|
|
249
|
-
readonly mean: number;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The standard deviation of the recorded event loop delays.
|
|
253
|
-
*/
|
|
254
|
-
readonly stddev: number;
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Resets the collected histogram data.
|
|
258
|
-
*/
|
|
259
|
-
reset(): void;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Returns the value at the given percentile.
|
|
263
|
-
* @param percentile A percentile value between 1 and 100.
|
|
264
|
-
*/
|
|
265
|
-
percentile(percentile: number): number;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
interface IntervalHistogram extends Histogram {
|
|
269
|
-
/**
|
|
270
|
-
* Enables the event loop delay sample timer. Returns `true` if the timer was started, `false` if it was already started.
|
|
271
|
-
*/
|
|
272
|
-
enable(): boolean;
|
|
273
|
-
/**
|
|
274
|
-
* Disables the event loop delay sample timer. Returns `true` if the timer was stopped, `false` if it was already stopped.
|
|
275
|
-
*/
|
|
276
|
-
disable(): boolean;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
interface RecordableHistogram extends Histogram {
|
|
280
|
-
record(val: number | bigint): void;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Calculates the amount of time (in nanoseconds) that has passed since the previous call to recordDelta() and records that amount in the histogram.
|
|
284
|
-
*/
|
|
285
|
-
recordDelta(): void;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram;
|
|
289
|
-
|
|
290
|
-
interface CreateHistogramOptions {
|
|
291
|
-
/**
|
|
292
|
-
* The minimum recordable value. Must be an integer value greater than 0.
|
|
293
|
-
* @default 1
|
|
294
|
-
*/
|
|
295
|
-
min?: number | bigint;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* The maximum recordable value. Must be an integer value greater than min.
|
|
299
|
-
* @default Number.MAX_SAFE_INTEGER
|
|
300
|
-
*/
|
|
301
|
-
max?: number | bigint;
|
|
302
|
-
/**
|
|
303
|
-
* The number of accuracy digits. Must be a number between 1 and 5.
|
|
304
|
-
* @default 3
|
|
305
|
-
*/
|
|
306
|
-
figures?: number;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
function createHistogram(options?: CreateHistogramOptions): RecordableHistogram;
|
|
310
|
-
}
|