メインコンテンツにジャンプ
Back to plugins
@capgo/capacitor-firebase-performance
チュートリアル
@capgo/capacitor-firebase-performance

Firebase Performance

Capacitor プラグインの Firebase Performance 監視

ガイド

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

使用方法: @capgo/capacitor-firebase-performance

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

インストール

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

このプラグインが提供するもの

  • startTrace - トレースを開始します。
  • stopTrace - トレースを停止します。
  • incrementMetric - 指定された名前のメトリクスを選択したトレースで原子的にインクリメントします。 incrementBy value.
  • setEnabled - パフォーマンスモニタリングを有効または無効にします。アプリの次の起動時に適用されます。

Example Usage

startTrace

traceを開始します。

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

await FirebasePerformance.startTrace({} as StartTraceOptions);

stopTrace

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

パフォーマンスモニタリングを有効または無効にします。アプリの次の起動時に適用されます。

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

await FirebasePerformance.setEnabled({} as SetEnabledOptions);

Full Reference

使用中の@capgo/capacitor-firebase-performanceから続けてください。

__CAPGO_KEEP_0__が使用している場合 使用中の@capgo/capacitor-firebase-performanceから続けてください。 ネイティブプラグインの作業計画を行う場合、__CAPGO_KEEP_0__ Plugin Directoryと接続してください。 Capgo Plugin Directoryの製品ワークフロー Capgo Plugins by __CAPGO_KEEP_1__ Capacitor Plugins by Capgoの実装詳細 for the implementation detail in Capacitor Plugins by Capgo, プラグインの追加または更新の実装詳細 Ionic Enterprise Plugin Alternatives Ionic Enterprise Plugin Alternativesの製品ワークフロー Capgoの製品ワークフロー Capgoネイティブビルド Capgoネイティブビルドの製品ワークフロー向け