메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-firebase-performance
튜토리얼
github.com/Cap-go에 의해

파이어베이스 성능

Capacitor 플러그인 - 파이어베이스 성능 모니터링

가이드

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.

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에서 찾을 수 있습니다.