Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit eadd9e1

Browse files
Support Firebase Performance Monitoring #370
1 parent 2ffc70e commit eadd9e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/performance/performance.android.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
import { firebase } from "../firebase-common";
2-
31
declare const com: any;
42

5-
const FirebasePerformance = com.google.firebase.perf.FirebasePerformance;
6-
73
export function startTrace(name: string): FirebaseTrace {
8-
const trace = FirebasePerformance.getInstance().newTrace(name);
4+
const trace = com.google.firebase.perf.FirebasePerformance.getInstance().newTrace(name);
95
trace.start();
106
return new FirebaseTrace(trace);
117
}
@@ -22,7 +18,6 @@ export class FirebaseTrace {
2218
return this.nativeTrace.getAttribute(attribute);
2319
}
2420

25-
// TODO this is a Java map I guess (yep, let's transform)
2621
getAttributes(): { [field: string]: any } {
2722
const attributes = this.nativeTrace.getAttributes();
2823
const node = {};

0 commit comments

Comments
 (0)