@firebase/performance 0.6.10 → 0.6.11
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/dist/esm/index.esm2017.js +1473 -1473
- package/dist/esm/index.esm2017.js.map +1 -1
- package/dist/esm/src/constants.d.ts +32 -32
- package/dist/esm/src/controllers/perf.d.ts +39 -39
- package/dist/esm/src/controllers/perf.test.d.ts +17 -17
- package/dist/esm/src/index.d.ts +46 -46
- package/dist/esm/src/index.test.d.ts +17 -17
- package/dist/esm/src/public_types.d.ts +136 -136
- package/dist/esm/src/resources/network_request.d.ts +43 -43
- package/dist/esm/src/resources/network_request.test.d.ts +17 -17
- package/dist/esm/src/resources/trace.d.ts +119 -119
- package/dist/esm/src/resources/trace.test.d.ts +17 -17
- package/dist/esm/src/services/api_service.d.ts +51 -51
- package/dist/esm/src/services/api_service.test.d.ts +17 -17
- package/dist/esm/src/services/iid_service.d.ts +21 -21
- package/dist/esm/src/services/iid_service.test.d.ts +17 -17
- package/dist/esm/src/services/initialization_service.d.ts +19 -19
- package/dist/esm/src/services/initialization_service.test.d.ts +17 -17
- package/dist/esm/src/services/oob_resources_service.d.ts +18 -18
- package/dist/esm/src/services/oob_resources_service.test.d.ts +17 -17
- package/dist/esm/src/services/perf_logger.d.ts +20 -20
- package/dist/esm/src/services/perf_logger.test.d.ts +17 -17
- package/dist/esm/src/services/remote_config_service.d.ts +18 -18
- package/dist/esm/src/services/remote_config_service.test.d.ts +17 -17
- package/dist/esm/src/services/settings_service.d.ts +32 -32
- package/dist/esm/src/services/transport_service.d.ts +23 -23
- package/dist/esm/src/services/transport_service.test.d.ts +17 -17
- package/dist/esm/src/utils/app_utils.d.ts +20 -20
- package/dist/esm/src/utils/attribute_utils.test.d.ts +17 -17
- package/dist/esm/src/utils/attributes_utils.d.ts +40 -40
- package/dist/esm/src/utils/console_logger.d.ts +18 -18
- package/dist/esm/src/utils/errors.d.ts +60 -60
- package/dist/esm/src/utils/metric_utils.d.ts +28 -28
- package/dist/esm/src/utils/metric_utils.test.d.ts +17 -17
- package/dist/esm/src/utils/string_merger.d.ts +17 -17
- package/dist/esm/src/utils/string_merger.test.d.ts +17 -17
- package/dist/esm/test/setup.d.ts +17 -17
- package/dist/index.cjs.js +1473 -1473
- package/dist/index.cjs.js.map +1 -1
- package/dist/src/constants.d.ts +32 -32
- package/dist/src/controllers/perf.d.ts +39 -39
- package/dist/src/controllers/perf.test.d.ts +17 -17
- package/dist/src/index.d.ts +46 -46
- package/dist/src/index.test.d.ts +17 -17
- package/dist/src/public_types.d.ts +136 -136
- package/dist/src/resources/network_request.d.ts +43 -43
- package/dist/src/resources/network_request.test.d.ts +17 -17
- package/dist/src/resources/trace.d.ts +119 -119
- package/dist/src/resources/trace.test.d.ts +17 -17
- package/dist/src/services/api_service.d.ts +51 -51
- package/dist/src/services/api_service.test.d.ts +17 -17
- package/dist/src/services/iid_service.d.ts +21 -21
- package/dist/src/services/iid_service.test.d.ts +17 -17
- package/dist/src/services/initialization_service.d.ts +19 -19
- package/dist/src/services/initialization_service.test.d.ts +17 -17
- package/dist/src/services/oob_resources_service.d.ts +18 -18
- package/dist/src/services/oob_resources_service.test.d.ts +17 -17
- package/dist/src/services/perf_logger.d.ts +20 -20
- package/dist/src/services/perf_logger.test.d.ts +17 -17
- package/dist/src/services/remote_config_service.d.ts +18 -18
- package/dist/src/services/remote_config_service.test.d.ts +17 -17
- package/dist/src/services/settings_service.d.ts +32 -32
- package/dist/src/services/transport_service.d.ts +23 -23
- package/dist/src/services/transport_service.test.d.ts +17 -17
- package/dist/src/utils/app_utils.d.ts +20 -20
- package/dist/src/utils/attribute_utils.test.d.ts +17 -17
- package/dist/src/utils/attributes_utils.d.ts +40 -40
- package/dist/src/utils/console_logger.d.ts +18 -18
- package/dist/src/utils/errors.d.ts +60 -60
- package/dist/src/utils/metric_utils.d.ts +28 -28
- package/dist/src/utils/metric_utils.test.d.ts +17 -17
- package/dist/src/utils/string_merger.d.ts +17 -17
- package/dist/src/utils/string_merger.test.d.ts +17 -17
- package/dist/test/setup.d.ts +17 -17
- package/package.json +7 -7
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { PerformanceTrace } from '../public_types';
|
|
18
|
-
import { PerformanceController } from '../controllers/perf';
|
|
19
|
-
export declare class Trace implements PerformanceTrace {
|
|
20
|
-
readonly performanceController: PerformanceController;
|
|
21
|
-
readonly name: string;
|
|
22
|
-
readonly isAuto: boolean;
|
|
23
|
-
private state;
|
|
24
|
-
startTimeUs: number;
|
|
25
|
-
durationUs: number;
|
|
26
|
-
private customAttributes;
|
|
27
|
-
counters: {
|
|
28
|
-
[counterName: string]: number;
|
|
29
|
-
};
|
|
30
|
-
private api;
|
|
31
|
-
private randomId;
|
|
32
|
-
private traceStartMark;
|
|
33
|
-
private traceStopMark;
|
|
34
|
-
private traceMeasure;
|
|
35
|
-
/**
|
|
36
|
-
* @param performanceController The performance controller running.
|
|
37
|
-
* @param name The name of the trace.
|
|
38
|
-
* @param isAuto If the trace is auto-instrumented.
|
|
39
|
-
* @param traceMeasureName The name of the measure marker in user timing specification. This field
|
|
40
|
-
* is only set when the trace is built for logging when the user directly uses the user timing
|
|
41
|
-
* api (performance.mark and performance.measure).
|
|
42
|
-
*/
|
|
43
|
-
constructor(performanceController: PerformanceController, name: string, isAuto?: boolean, traceMeasureName?: string);
|
|
44
|
-
/**
|
|
45
|
-
* Starts a trace. The measurement of the duration starts at this point.
|
|
46
|
-
*/
|
|
47
|
-
start(): void;
|
|
48
|
-
/**
|
|
49
|
-
* Stops the trace. The measurement of the duration of the trace stops at this point and trace
|
|
50
|
-
* is logged.
|
|
51
|
-
*/
|
|
52
|
-
stop(): void;
|
|
53
|
-
/**
|
|
54
|
-
* Records a trace with predetermined values. If this method is used a trace is created and logged
|
|
55
|
-
* directly. No need to use start and stop methods.
|
|
56
|
-
* @param startTime Trace start time since epoch in millisec
|
|
57
|
-
* @param duration The duration of the trace in millisec
|
|
58
|
-
* @param options An object which can optionally hold maps of custom metrics and custom attributes
|
|
59
|
-
*/
|
|
60
|
-
record(startTime: number, duration: number, options?: {
|
|
61
|
-
metrics?: {
|
|
62
|
-
[key: string]: number;
|
|
63
|
-
};
|
|
64
|
-
attributes?: {
|
|
65
|
-
[key: string]: string;
|
|
66
|
-
};
|
|
67
|
-
}): void;
|
|
68
|
-
/**
|
|
69
|
-
* Increments a custom metric by a certain number or 1 if number not specified. Will create a new
|
|
70
|
-
* custom metric if one with the given name does not exist. The value will be floored down to an
|
|
71
|
-
* integer.
|
|
72
|
-
* @param counter Name of the custom metric
|
|
73
|
-
* @param numAsInteger Increment by value
|
|
74
|
-
*/
|
|
75
|
-
incrementMetric(counter: string, numAsInteger?: number): void;
|
|
76
|
-
/**
|
|
77
|
-
* Sets a custom metric to a specified value. Will create a new custom metric if one with the
|
|
78
|
-
* given name does not exist. The value will be floored down to an integer.
|
|
79
|
-
* @param counter Name of the custom metric
|
|
80
|
-
* @param numAsInteger Set custom metric to this value
|
|
81
|
-
*/
|
|
82
|
-
putMetric(counter: string, numAsInteger: number): void;
|
|
83
|
-
/**
|
|
84
|
-
* Returns the value of the custom metric by that name. If a custom metric with that name does
|
|
85
|
-
* not exist will return zero.
|
|
86
|
-
* @param counter
|
|
87
|
-
*/
|
|
88
|
-
getMetric(counter: string): number;
|
|
89
|
-
/**
|
|
90
|
-
* Sets a custom attribute of a trace to a certain value.
|
|
91
|
-
* @param attr
|
|
92
|
-
* @param value
|
|
93
|
-
*/
|
|
94
|
-
putAttribute(attr: string, value: string): void;
|
|
95
|
-
/**
|
|
96
|
-
* Retrieves the value a custom attribute of a trace is set to.
|
|
97
|
-
* @param attr
|
|
98
|
-
*/
|
|
99
|
-
getAttribute(attr: string): string | undefined;
|
|
100
|
-
removeAttribute(attr: string): void;
|
|
101
|
-
getAttributes(): {
|
|
102
|
-
[key: string]: string;
|
|
103
|
-
};
|
|
104
|
-
private setStartTime;
|
|
105
|
-
private setDuration;
|
|
106
|
-
/**
|
|
107
|
-
* Calculates and assigns the duration and start time of the trace using the measure performance
|
|
108
|
-
* entry.
|
|
109
|
-
*/
|
|
110
|
-
private calculateTraceMetrics;
|
|
111
|
-
/**
|
|
112
|
-
* @param navigationTimings A single element array which contains the navigationTIming object of
|
|
113
|
-
* the page load
|
|
114
|
-
* @param paintTimings A array which contains paintTiming object of the page load
|
|
115
|
-
* @param firstInputDelay First input delay in millisec
|
|
116
|
-
*/
|
|
117
|
-
static createOobTrace(performanceController: PerformanceController, navigationTimings: PerformanceNavigationTiming[], paintTimings: PerformanceEntry[], firstInputDelay?: number): void;
|
|
118
|
-
static createUserTimingTrace(performanceController: PerformanceController, measureName: string): void;
|
|
119
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { PerformanceTrace } from '../public_types';
|
|
18
|
+
import { PerformanceController } from '../controllers/perf';
|
|
19
|
+
export declare class Trace implements PerformanceTrace {
|
|
20
|
+
readonly performanceController: PerformanceController;
|
|
21
|
+
readonly name: string;
|
|
22
|
+
readonly isAuto: boolean;
|
|
23
|
+
private state;
|
|
24
|
+
startTimeUs: number;
|
|
25
|
+
durationUs: number;
|
|
26
|
+
private customAttributes;
|
|
27
|
+
counters: {
|
|
28
|
+
[counterName: string]: number;
|
|
29
|
+
};
|
|
30
|
+
private api;
|
|
31
|
+
private randomId;
|
|
32
|
+
private traceStartMark;
|
|
33
|
+
private traceStopMark;
|
|
34
|
+
private traceMeasure;
|
|
35
|
+
/**
|
|
36
|
+
* @param performanceController The performance controller running.
|
|
37
|
+
* @param name The name of the trace.
|
|
38
|
+
* @param isAuto If the trace is auto-instrumented.
|
|
39
|
+
* @param traceMeasureName The name of the measure marker in user timing specification. This field
|
|
40
|
+
* is only set when the trace is built for logging when the user directly uses the user timing
|
|
41
|
+
* api (performance.mark and performance.measure).
|
|
42
|
+
*/
|
|
43
|
+
constructor(performanceController: PerformanceController, name: string, isAuto?: boolean, traceMeasureName?: string);
|
|
44
|
+
/**
|
|
45
|
+
* Starts a trace. The measurement of the duration starts at this point.
|
|
46
|
+
*/
|
|
47
|
+
start(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Stops the trace. The measurement of the duration of the trace stops at this point and trace
|
|
50
|
+
* is logged.
|
|
51
|
+
*/
|
|
52
|
+
stop(): void;
|
|
53
|
+
/**
|
|
54
|
+
* Records a trace with predetermined values. If this method is used a trace is created and logged
|
|
55
|
+
* directly. No need to use start and stop methods.
|
|
56
|
+
* @param startTime Trace start time since epoch in millisec
|
|
57
|
+
* @param duration The duration of the trace in millisec
|
|
58
|
+
* @param options An object which can optionally hold maps of custom metrics and custom attributes
|
|
59
|
+
*/
|
|
60
|
+
record(startTime: number, duration: number, options?: {
|
|
61
|
+
metrics?: {
|
|
62
|
+
[key: string]: number;
|
|
63
|
+
};
|
|
64
|
+
attributes?: {
|
|
65
|
+
[key: string]: string;
|
|
66
|
+
};
|
|
67
|
+
}): void;
|
|
68
|
+
/**
|
|
69
|
+
* Increments a custom metric by a certain number or 1 if number not specified. Will create a new
|
|
70
|
+
* custom metric if one with the given name does not exist. The value will be floored down to an
|
|
71
|
+
* integer.
|
|
72
|
+
* @param counter Name of the custom metric
|
|
73
|
+
* @param numAsInteger Increment by value
|
|
74
|
+
*/
|
|
75
|
+
incrementMetric(counter: string, numAsInteger?: number): void;
|
|
76
|
+
/**
|
|
77
|
+
* Sets a custom metric to a specified value. Will create a new custom metric if one with the
|
|
78
|
+
* given name does not exist. The value will be floored down to an integer.
|
|
79
|
+
* @param counter Name of the custom metric
|
|
80
|
+
* @param numAsInteger Set custom metric to this value
|
|
81
|
+
*/
|
|
82
|
+
putMetric(counter: string, numAsInteger: number): void;
|
|
83
|
+
/**
|
|
84
|
+
* Returns the value of the custom metric by that name. If a custom metric with that name does
|
|
85
|
+
* not exist will return zero.
|
|
86
|
+
* @param counter
|
|
87
|
+
*/
|
|
88
|
+
getMetric(counter: string): number;
|
|
89
|
+
/**
|
|
90
|
+
* Sets a custom attribute of a trace to a certain value.
|
|
91
|
+
* @param attr
|
|
92
|
+
* @param value
|
|
93
|
+
*/
|
|
94
|
+
putAttribute(attr: string, value: string): void;
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves the value a custom attribute of a trace is set to.
|
|
97
|
+
* @param attr
|
|
98
|
+
*/
|
|
99
|
+
getAttribute(attr: string): string | undefined;
|
|
100
|
+
removeAttribute(attr: string): void;
|
|
101
|
+
getAttributes(): {
|
|
102
|
+
[key: string]: string;
|
|
103
|
+
};
|
|
104
|
+
private setStartTime;
|
|
105
|
+
private setDuration;
|
|
106
|
+
/**
|
|
107
|
+
* Calculates and assigns the duration and start time of the trace using the measure performance
|
|
108
|
+
* entry.
|
|
109
|
+
*/
|
|
110
|
+
private calculateTraceMetrics;
|
|
111
|
+
/**
|
|
112
|
+
* @param navigationTimings A single element array which contains the navigationTIming object of
|
|
113
|
+
* the page load
|
|
114
|
+
* @param paintTimings A array which contains paintTiming object of the page load
|
|
115
|
+
* @param firstInputDelay First input delay in millisec
|
|
116
|
+
*/
|
|
117
|
+
static createOobTrace(performanceController: PerformanceController, navigationTimings: PerformanceNavigationTiming[], paintTimings: PerformanceEntry[], firstInputDelay?: number): void;
|
|
118
|
+
static createUserTimingTrace(performanceController: PerformanceController, measureName: string): void;
|
|
119
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import '../../test/setup';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import '../../test/setup';
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
declare global {
|
|
18
|
-
interface Window {
|
|
19
|
-
PerformanceObserver: typeof PerformanceObserver;
|
|
20
|
-
perfMetrics?: {
|
|
21
|
-
onFirstInputDelay(fn: (fid: number) => void): void;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export
|
|
26
|
-
/**
|
|
27
|
-
* This class holds a reference to various browser related objects injected by
|
|
28
|
-
* set methods.
|
|
29
|
-
*/
|
|
30
|
-
export declare class Api {
|
|
31
|
-
readonly window?: Window | undefined;
|
|
32
|
-
private readonly performance;
|
|
33
|
-
/** PerformanceObserver constructor function. */
|
|
34
|
-
private readonly PerformanceObserver;
|
|
35
|
-
private readonly windowLocation;
|
|
36
|
-
readonly onFirstInputDelay?: (fn: (fid: number) => void) => void;
|
|
37
|
-
readonly localStorage?: Storage;
|
|
38
|
-
readonly document: Document;
|
|
39
|
-
readonly navigator: Navigator;
|
|
40
|
-
constructor(window?: Window | undefined);
|
|
41
|
-
getUrl(): string;
|
|
42
|
-
mark(name: string): void;
|
|
43
|
-
measure(measureName: string, mark1: string, mark2: string): void;
|
|
44
|
-
getEntriesByType(type: EntryType): PerformanceEntry[];
|
|
45
|
-
getEntriesByName(name: string): PerformanceEntry[];
|
|
46
|
-
getTimeOrigin(): number;
|
|
47
|
-
requiredApisAvailable(): boolean;
|
|
48
|
-
setupObserver(entryType: EntryType, callback: (entry: PerformanceEntry) => void): void;
|
|
49
|
-
static getInstance(): Api;
|
|
50
|
-
}
|
|
51
|
-
export declare function setupApi(window: Window): void;
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
declare global {
|
|
18
|
+
interface Window {
|
|
19
|
+
PerformanceObserver: typeof PerformanceObserver;
|
|
20
|
+
perfMetrics?: {
|
|
21
|
+
onFirstInputDelay(fn: (fid: number) => void): void;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export type EntryType = 'mark' | 'measure' | 'paint' | 'resource' | 'frame' | 'navigation';
|
|
26
|
+
/**
|
|
27
|
+
* This class holds a reference to various browser related objects injected by
|
|
28
|
+
* set methods.
|
|
29
|
+
*/
|
|
30
|
+
export declare class Api {
|
|
31
|
+
readonly window?: Window | undefined;
|
|
32
|
+
private readonly performance;
|
|
33
|
+
/** PerformanceObserver constructor function. */
|
|
34
|
+
private readonly PerformanceObserver;
|
|
35
|
+
private readonly windowLocation;
|
|
36
|
+
readonly onFirstInputDelay?: (fn: (fid: number) => void) => void;
|
|
37
|
+
readonly localStorage?: Storage;
|
|
38
|
+
readonly document: Document;
|
|
39
|
+
readonly navigator: Navigator;
|
|
40
|
+
constructor(window?: Window | undefined);
|
|
41
|
+
getUrl(): string;
|
|
42
|
+
mark(name: string): void;
|
|
43
|
+
measure(measureName: string, mark1: string, mark2: string): void;
|
|
44
|
+
getEntriesByType(type: EntryType): PerformanceEntry[];
|
|
45
|
+
getEntriesByName(name: string): PerformanceEntry[];
|
|
46
|
+
getTimeOrigin(): number;
|
|
47
|
+
requiredApisAvailable(): boolean;
|
|
48
|
+
setupObserver(entryType: EntryType, callback: (entry: PerformanceEntry) => void): void;
|
|
49
|
+
static getInstance(): Api;
|
|
50
|
+
}
|
|
51
|
+
export declare function setupApi(window: Window): void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import '../../test/setup';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import '../../test/setup';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { _FirebaseInstallationsInternal } from '@firebase/installations';
|
|
18
|
-
export declare function getIidPromise(installationsService: _FirebaseInstallationsInternal): Promise<string>;
|
|
19
|
-
export declare function getIid(): string | undefined;
|
|
20
|
-
export declare function getAuthTokenPromise(installationsService: _FirebaseInstallationsInternal): Promise<string>;
|
|
21
|
-
export declare function getAuthenticationToken(): string | undefined;
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { _FirebaseInstallationsInternal } from '@firebase/installations';
|
|
18
|
+
export declare function getIidPromise(installationsService: _FirebaseInstallationsInternal): Promise<string>;
|
|
19
|
+
export declare function getIid(): string | undefined;
|
|
20
|
+
export declare function getAuthTokenPromise(installationsService: _FirebaseInstallationsInternal): Promise<string>;
|
|
21
|
+
export declare function getAuthenticationToken(): string | undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import '../../test/setup';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import '../../test/setup';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { PerformanceController } from '../controllers/perf';
|
|
18
|
-
export declare function getInitializationPromise(performanceController: PerformanceController): Promise<void>;
|
|
19
|
-
export declare function isPerfInitialized(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { PerformanceController } from '../controllers/perf';
|
|
18
|
+
export declare function getInitializationPromise(performanceController: PerformanceController): Promise<void>;
|
|
19
|
+
export declare function isPerfInitialized(): boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import '../../test/setup';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import '../../test/setup';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import { PerformanceController } from '../controllers/perf';
|
|
18
|
-
export declare function setupOobResources(performanceController: PerformanceController): void;
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { PerformanceController } from '../controllers/perf';
|
|
18
|
+
export declare function setupOobResources(performanceController: PerformanceController): void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
import '../../test/setup';
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import '../../test/setup';
|