メインコンテンツにジャンプ
プラグインに戻る
@capgo/capacitor-firebase-performance
チュートリアル
githubのgithub.com/Cap-go

ファイアベース パフォーマンス

Capacitorのファイアベース パフォーマンス モニタリング プラグイン

ガイド

Firebase パフォーマンスのチュートリアル

@capgo/capacitor-firebase-performance を使用

Firebase パフォーマンス監視用の Capacitor プラグイン

インストール

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

Example Usage__CAPGO_KEEP_0__

import { FirebasePerformance } from '@capgo/capacitor-firebase-performance';

await FirebasePerformance.setEnabled({} as SetEnabledOptions);

Starts a trace__CAPGO_KEEP_0__

Keep going from Using @capgo/capacitor-firebase-performance

__CAPGO_KEEP_0__を使用している場合 Using @capgo/capacitor-firebase-performance __CAPGO_KEEP_0__を使用して、ネイティブプラグインの作業計画を立てる場合、__CAPGO_KEEP_0__ Plugin Directoryと接続する Capgo Plugin Directory Capgoのプラグインディレクトリで、Capgoの製品ワークフロー CapgoによるCapacitorのプラグイン CapgoによるCapacitorの実装詳細 プラグインの追加または更新 for the implementation detail in Adding or Updating Plugins、 Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives、と Capgo Native Builds for the product workflow in Capgo Native Builds。