Skip to content

Commit 205421e

Browse files
authored
Adding performance to firebase-exp (#3830)
* Adding performance and installations to firebase-exp * Adding a missing param doc * Updating Copyright date to 2020 * Reverting the changes to installations * Updating performance/package.json to use the correct distributions
1 parent 81c61b6 commit 205421e

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

packages-exp/firebase-exp/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"@firebase/app-exp": "0.0.800",
4141
"@firebase/app-compat": "0.0.800",
4242
"@firebase/functions-exp": "0.0.800",
43-
"@firebase/firestore": "1.17.0"
43+
"@firebase/firestore": "1.17.0",
44+
"@firebase/performance-exp": "0.0.800"
4445
},
4546
"devDependencies": {
4647
"rollup": "2.28.1",
@@ -60,6 +61,7 @@
6061
"app",
6162
"functions",
6263
"firestore",
63-
"firestore/lite"
64+
"firestore/lite",
65+
"performance"
6466
]
6567
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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+
export * from '@firebase/performance-exp';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "firebase-exp/performance",
3+
"main": "dist/index.cjs.js",
4+
"browser": "dist/index.esm.js",
5+
"module": "dist/index.esm.js",
6+
"typings": "dist/index.d.ts"
7+
}

packages-exp/performance-exp/src/resources/trace.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export class Trace implements PerformanceTrace {
5757
private traceMeasure!: string;
5858

5959
/**
60+
* @param performanceController The performance controller running.
6061
* @param name The name of the trace.
6162
* @param isAuto If the trace is auto-instrumented.
6263
* @param traceMeasureName The name of the measure marker in user timing specification. This field

0 commit comments

Comments
 (0)