가이드
파이어베이스 성능 튜토리얼
파이어베이스 성능을 위한 @capgo/capacitor-firebase-performance 사용
Capacitor 파이어베이스 성능 모니터링 플러그인
설치
bun add @capgo/capacitor-firebase-performance
bunx cap sync
이 플러그인은 무엇을 제공하는가?
startTrace- 추적을 시작합니다.stopTrace- 추적을 중지합니다.incrementMetric- 선택한 추적에 대한 지정된 이름의 메트릭을 atomically 증가시킵니다. 증가량은 __CAPGO_KEEP_0__입니다.incrementBy- 추적을 시작할 때 다음에 적용됩니다. 성능 모니터링을 사용하거나 사용하지 않습니다.setEnabled예시 사용
추적을 시작합니다.
startTrace
추적을 중지합니다.
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.startTrace({} as StartTraceOptions);
stopTrace
선택한 추적에 대한 지정된 이름의 메트릭을 atomically 증가시킵니다. 증가량은 __CAPGO_KEEP_0__입니다.
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.stopTrace({} as StopTraceOptions);
incrementMetric
추적을 시작할 때 다음에 적용됩니다. 성능 모니터링을 사용하거나 사용하지 않습니다. incrementBy 전체 참조
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.incrementMetric({} as IncrementMetricOptions);
setEnabled
__CAPGO_KEEP_0__
import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';
await FirebasePerformance.setEnabled({} as SetEnabledOptions);
__CAPGO_KEEP_0__
- GitHub: github.com/Cap-go/capacitor-firebase/tree/main/packages/performance
- 문서: /docs/plugins/firebase-performance/
capgo에서 계속 진행하세요: Using @capgo/capacitor-firebase-performance
__CAPGO_KEEP_0__을 사용하는 경우 Using @capgo/capacitor-firebase-performance __CAPGO_KEEP_0__을 __CAPGO_KEEP_1__과 연결하여 Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 Capgo 제품 워크플로우 Capgo에서 개발한 Capacitor 플러그인 Capacitor 플러그인에서 Capgo의 구현 세부 정보 플러그인을 추가하거나 업데이트 구현 세부 정보에 대한 추가 또는 업데이트 플러그인에 대해 아이오닉 엔터프라이즈 플러그인 대체 __CAPGO_KEEP_0__ Native Builds의 제품 워크플로우에 대해 Capgo Native Builds의 제품 워크플로우에 대해 for the product workflow in Capgo Native Builds.