가이드
Firebase 성능에 대한 튜토리얼
@capgo/capacitor-firebase-performance 사용
Firebase 성능 모니터링을 위한 Capacitor 플러그인
설치
bun add @capgo/capacitor-firebase-performance
bunx cap sync
이 플러그인은 다음을 제공합니다.
startTrace- 시작을 시작합니다.stopTrace- 시작을 중단합니다.incrementMetric- 선택한 추적에 대한 지정된 이름의 메트릭을 atomically 증가시킵니다.incrementBy__CAPGO_KEEP_0__setEnabled- 앱의 다음 시작 시 성능 모니터링을 활성화하거나 비활성화합니다.
__CAPGO_KEEP_1__
startTrace
Starts a trace.
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.startTrace({} as StartTraceOptions);
stopTrace
Stops a trace.
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.stopTrace({} as StopTraceOptions);
incrementMetric
Atomically increments the metric with the given name for the selected trace by the incrementBy value.
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.incrementMetric({} as IncrementMetricOptions);
setEnabled
__CAPGO_KEEP_2__
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.setEnabled({} as SetEnabledOptions);
Enables or disables performance monitoring. Will be applied with the next start of the app.
- GitHub: https://github.com/Cap-go/capacitor-firebase/tree/main/packages/performance
- 문서: /docs/plugins/firebase-performance/
capgo를 사용하여 계속하기: Using @capgo/capacitor-firebase-performance
__CAPGO_KEEP_0__를 사용하고 있다면 capgo를 사용하여 계속하기: Using @capgo/capacitor-firebase-performance __CAPGO_KEEP_0__를 사용하여 Native 플러그인 작업을 계획하고, Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리 내의 제품 워크플로우 Capgo에서 개발한 Capacitor 플러그인 Capgo에서 개발한 Capacitor 플러그인의 구현 세부 사항 플러그인을 추가하거나 업데이트 하기 __CAPGO_KEEP_0__ 구현 세부 사항에 대한 정보는 Adding or Updating Plugins에서 찾을 수 있습니다. Ionic Enterprise Plugin Alternatives __CAPGO_KEEP_0__ 제품 워크플로우에 대한 정보는 Ionic Enterprise Plugin Alternatives에서 찾을 수 있습니다. Capgo Native Builds Capgo 제품 워크플로우에 대한 정보는 Capgo Native Builds에서 찾을 수 있습니다.