메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-firebase-performance
튜토리얼
@capgo/capacitor-firebase-performance

파이어베이스 퍼포먼스

파이어베이스 퍼포먼스 모니터링을 위한 Capacitor 플러그인

안내

튜토리얼: Firebase 성능

capgo와 capacitor을 사용하여 Firebase 성능

Capacitor 플러그인: Firebase 성능 모니터링

설치

bun add @capgo/capacitor-firebase-performance
bunx cap sync

이 플러그인은 다음을 제공합니다.

  • startTrace - 추적을 시작합니다.
  • stopTrace - 추적을 중지합니다.
  • incrementMetric - 선택한 추적에 대한 지정된 이름의 메트릭을 원자적으로 증가시킵니다. incrementBy - 지정된 값으로 선택한 추적에 대한 지정된 이름의 메트릭을 원자적으로 증가시킵니다.
  • 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 - 지정된 값으로 선택한 추적에 대한 지정된 이름의 메트릭을 원자적으로 증가시킵니다.

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);

전체 참조

Keep going from Using @capgo/capacitor-firebase-%EC%A1%B0%EB%8A%B4%EC%9A%A9%EB%B2%95

If you are using Using @capgo/capacitor-firebase-%EC%A1%B0%EB%8A%B4%EC%9A%A9%EB%B2%95 to plan native plugin work, connect it with Capgo %EC%A1%B0%EB%8A%B4%EC%9A%A9%EB%B2%95 %EC%84%9C%EB%B2%84 for the product workflow in Capgo %EC%A1%B0%EB%8A%B4%EC%9A%A9%EB%B2%95 %EC%84%9C%EB%B2%84 Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating %EC%A1%B0%EB%8A%B4%EC%9A%A9%EB%B2%95 for the implementation detail in Adding or Updating %EC%A1%B0%EB%8A%B4%EC%9A%A9%EB%B2%95, 아이오닉 엔터프라이즈 플러그인 대체품 아이오닉 엔터프라이즈 플러그인 대체품의 제품 워크플로우에 대해 Capgo 네이티브 빌드 Capgo 네이티브 빌드의 제품 워크플로우에 대해