가이드
Firebase 성능 튜토리얼
Using @capgo/capacitor-firebase-performance
Capacitor 플러그인: Firebase 성능 모니터링
설치
bun add @capgo/capacitor-firebase-performance
bunx cap sync
이 플러그인이 노출하는 것
startTrace- 트레이스 시작.stopTrace- 트레이스 중지.incrementMetric- 선택한 트레이스에서 지정된 이름의 메트릭을 원자적으로 증가시킵니다.incrementByvalue.setEnabled- 애플리케이션의 성능 모니터링을 활성화하거나 비활성화합니다. 다음 앱 시작 시 적용됩니다.
Example Usage
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 value.
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.incrementMetric({} as IncrementMetricOptions);
setEnabled
애플리케이션의 성능 모니터링을 활성화하거나 비활성화합니다. 다음 앱 시작 시 적용됩니다.
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.setEnabled({} as SetEnabledOptions);
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-firebase/tree/main/packages/performance
- Docs: /docs/plugins/firebase-performance/
capgo에서 계속 진행하세요: @capgo/capacitor-firebase-performance
__CAPGO_KEEP_0__을 사용 중이라면 Using @capgo/capacitor-firebase-performance __CAPGO_KEEP_0__ Plugin Directory와 연결하세요. Capgo Plugin Directory 내 Capgo 제품 워크플로우 Capgo Plugin Directory 내 __CAPGO_KEEP_1__의 플러그인 Capacitor 플러그인에 대한 구현 세부 정보: Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, __CAPGO_KEEP_0__ 플러그인에 대한 구현 세부 정보: Adding or Updating Plugins __CAPGO_KEEP_0__ Enterprise Plugin Alternatives 제품 워크플로우 __CAPGO_KEEP_0__ Enterprise Plugin Alternatives 제품 워크플로우 내 __CAPGO_KEEP_1__ Enterprise Plugin Alternatives __CAPGO_KEEP_0__ Enterprise Plugin Alternatives 제품 워크플로우 내 __CAPGO_KEEP_1__ Enterprise Plugin Alternatives Capgo 네이티브 빌드 Capgo 네이티브 빌드의 제품 워크플로우에 대해.