summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/performance/dist/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-old/node_modules/@firebase/performance/dist/src/resources')
-rw-r--r--frontend-old/node_modules/@firebase/performance/dist/src/resources/network_request.d.ts43
-rw-r--r--frontend-old/node_modules/@firebase/performance/dist/src/resources/trace.d.ts121
-rw-r--r--frontend-old/node_modules/@firebase/performance/dist/src/resources/web_vitals.d.ts25
3 files changed, 0 insertions, 189 deletions
diff --git a/frontend-old/node_modules/@firebase/performance/dist/src/resources/network_request.d.ts b/frontend-old/node_modules/@firebase/performance/dist/src/resources/network_request.d.ts
deleted file mode 100644
index cf7f15d..0000000
--- a/frontend-old/node_modules/@firebase/performance/dist/src/resources/network_request.d.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * @license
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { PerformanceController } from '../controllers/perf';
-export declare const enum HttpMethod {
- HTTP_METHOD_UNKNOWN = 0,
- GET = 1,
- PUT = 2,
- POST = 3,
- DELETE = 4,
- HEAD = 5,
- PATCH = 6,
- OPTIONS = 7,
- TRACE = 8,
- CONNECT = 9
-}
-export interface NetworkRequest {
- performanceController: PerformanceController;
- url: string;
- httpMethod?: HttpMethod;
- requestPayloadBytes?: number;
- responsePayloadBytes?: number;
- httpResponseCode?: number;
- responseContentType?: string;
- startTimeUs?: number;
- timeToRequestCompletedUs?: number;
- timeToResponseInitiatedUs?: number;
- timeToResponseCompletedUs?: number;
-}
-export declare function createNetworkRequestEntry(performanceController: PerformanceController, entry: PerformanceEntry): void;
diff --git a/frontend-old/node_modules/@firebase/performance/dist/src/resources/trace.d.ts b/frontend-old/node_modules/@firebase/performance/dist/src/resources/trace.d.ts
deleted file mode 100644
index 65d9ca4..0000000
--- a/frontend-old/node_modules/@firebase/performance/dist/src/resources/trace.d.ts
+++ /dev/null
@@ -1,121 +0,0 @@
-/**
- * @license
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-import { PerformanceTrace } from '../public_types';
-import { PerformanceController } from '../controllers/perf';
-import { CoreVitalMetric, WebVitalMetrics } from './web_vitals';
-export declare class Trace implements PerformanceTrace {
- readonly performanceController: PerformanceController;
- readonly name: string;
- readonly isAuto: boolean;
- private state;
- startTimeUs: number;
- durationUs: number;
- private customAttributes;
- counters: {
- [counterName: string]: number;
- };
- private api;
- private randomId;
- private traceStartMark;
- private traceStopMark;
- private traceMeasure;
- /**
- * @param performanceController The performance controller running.
- * @param name The name of the trace.
- * @param isAuto If the trace is auto-instrumented.
- * @param traceMeasureName The name of the measure marker in user timing specification. This field
- * is only set when the trace is built for logging when the user directly uses the user timing
- * api (performance.mark and performance.measure).
- */
- constructor(performanceController: PerformanceController, name: string, isAuto?: boolean, traceMeasureName?: string);
- /**
- * Starts a trace. The measurement of the duration starts at this point.
- */
- start(): void;
- /**
- * Stops the trace. The measurement of the duration of the trace stops at this point and trace
- * is logged.
- */
- stop(): void;
- /**
- * Records a trace with predetermined values. If this method is used a trace is created and logged
- * directly. No need to use start and stop methods.
- * @param startTime Trace start time since epoch in millisec
- * @param duration The duration of the trace in millisec
- * @param options An object which can optionally hold maps of custom metrics and custom attributes
- */
- record(startTime: number, duration: number, options?: {
- metrics?: {
- [key: string]: number;
- };
- attributes?: {
- [key: string]: string;
- };
- }): void;
- /**
- * Increments a custom metric by a certain number or 1 if number not specified. Will create a new
- * custom metric if one with the given name does not exist. The value will be floored down to an
- * integer.
- * @param counter Name of the custom metric
- * @param numAsInteger Increment by value
- */
- incrementMetric(counter: string, numAsInteger?: number): void;
- /**
- * Sets a custom metric to a specified value. Will create a new custom metric if one with the
- * given name does not exist. The value will be floored down to an integer.
- * @param counter Name of the custom metric
- * @param numAsInteger Set custom metric to this value
- */
- putMetric(counter: string, numAsInteger: number): void;
- /**
- * Returns the value of the custom metric by that name. If a custom metric with that name does
- * not exist will return zero.
- * @param counter
- */
- getMetric(counter: string): number;
- /**
- * Sets a custom attribute of a trace to a certain value.
- * @param attr
- * @param value
- */
- putAttribute(attr: string, value: string): void;
- /**
- * Retrieves the value a custom attribute of a trace is set to.
- * @param attr
- */
- getAttribute(attr: string): string | undefined;
- removeAttribute(attr: string): void;
- getAttributes(): {
- [key: string]: string;
- };
- private setStartTime;
- private setDuration;
- /**
- * Calculates and assigns the duration and start time of the trace using the measure performance
- * entry.
- */
- private calculateTraceMetrics;
- /**
- * @param navigationTimings A single element array which contains the navigationTIming object of
- * the page load
- * @param paintTimings A array which contains paintTiming object of the page load
- * @param firstInputDelay First input delay in millisec
- */
- static createOobTrace(performanceController: PerformanceController, navigationTimings: PerformanceNavigationTiming[], paintTimings: PerformanceEntry[], webVitalMetrics: WebVitalMetrics, firstInputDelay?: number): void;
- static addWebVitalMetric(trace: Trace, metricKey: string, attributeKey: string, metric?: CoreVitalMetric): void;
- static createUserTimingTrace(performanceController: PerformanceController, measureName: string): void;
-}
diff --git a/frontend-old/node_modules/@firebase/performance/dist/src/resources/web_vitals.d.ts b/frontend-old/node_modules/@firebase/performance/dist/src/resources/web_vitals.d.ts
deleted file mode 100644
index 1d9f7a1..0000000
--- a/frontend-old/node_modules/@firebase/performance/dist/src/resources/web_vitals.d.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- * @license
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-export interface CoreVitalMetric {
- value: number;
- elementAttribution?: string;
-}
-export interface WebVitalMetrics {
- cls?: CoreVitalMetric;
- inp?: CoreVitalMetric;
- lcp?: CoreVitalMetric;
-}