가이드
파이어베이스 퍼포먼스 튜토리얼
파이어베이스 퍼포먼스 @capgo/capacitor-firebase-performance
Capacitor 파이어베이스 퍼포먼스 모니터링 플러그인
설치
bun add @capgo/capacitor-firebase-performance
bunx cap sync
이 플러그인이 제공하는 것
startTrace- 추적 시작stopTrace- 추적 중지incrementMetric- 선택한 추적에 대한 지정된 이름의 메트릭을 원자적으로 1 증가시킵니다.incrementBy__CAPGO_KEEP_0__.setEnabled- 애플리케이션 성능 모니터링을 활성화/비활성화합니다. 다음 앱 시작 시 적용됩니다.
예시 사용
startTrace
트레이스 시작
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.startTrace({} as StartTraceOptions);
stopTrace
트레이스 중지
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.stopTrace({} as StopTraceOptions);
incrementMetric
선택한 트레이스에서 지정된 이름의 메트릭을 원자적으로 증가시킵니다. incrementBy __CAPGO_KEEP_0__.
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.incrementMetric({} as IncrementMetricOptions);
setEnabled
Full Reference
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.setEnabled({} as SetEnabledOptions);
__CAPGO_KEEP_0__:
- https://GitHub.com/Cap-go/__CAPGO_KEEP_1__-firebase/tree/main/packages/performance https://github.com/Cap-go/capacitor-firebase/tree/main/packages/performance
- __CAPGO_KEEP_0__:
capgo/capacitor-firebase-performance
__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-firebase-performance capgo/capacitor-firebase-performance __CAPGO_KEEP_0__ Capgo Capgo Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, __CAPGO_KEEP_0__ __CAPGO_KEEP_0__ __CAPGO_KEEP_0__ __CAPGO_KEEP_0__ Capgo Native Builds Capgo Native Builds