パッケージ、リポジトリ、アプリカテゴリを検索

performance のカバー
パッケージ詳細v0.1.1

performance

Webで動作するFlutterアプリ用のパフォーマンスオーバーレイパッケージ。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
728
いいね数
27
Pub ポイント
160

パッケージをインストール

flutter pub add performance

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutter用のパフォーマンスオーバーレイパッケージは、フレームレート、メモリ使用量、CPU負荷などのリアルタイムパフォーマンスメトリクスをアプリインターフェース上に直接表示します。Webを含むすべてのプラットフォームでシームレスに動作するように設計されており、開発中にパフォーマンスのボトルネックを特定・解決するのに役立ちます。軽量でカスタマイズ可能なため、UIの応答性やリソース消費のデバッグに最適です。簡単なpub addコマンドで簡単に統合でき、複数のターゲットプラットフォームをサポートしています。

用途

  • 開発中のリアルタイムパフォーマンス監視
  • フレームドロップおよびレンダリングの問題を特定する
  • ウェブ上のアプリの応答性を最適化する
  • メモリおよびCPU使用量のデバッグ
  • さまざまなデバイスでアプリのパフォーマンスをテストする
  • 本番環境に類似した環境でUIの滑らかさを検証する

主な機能

  • ライブフレームレートとパフォーマンス統計
  • ウェブを含むクロスプラットフォーム対応
  • pub add を用いた最小限のセットアップ
  • カスタマイズ可能なオーバーレイの外観
  • リリースモードでは実行時オーバーヘッドなし
  • すべての主要なFlutterプラットフォームをサポートしています

適している対象

  • Flutter開発者がUIの遅延をトラブルシューティングする
  • Webを最優先にしたFlutterアプリを開発するチーム
  • パフォーマンス重視のアプリ最適化
  • フロントエンドエンジニアが応答性をテストしています
  • モバイルおよびデスクトップアプリ開発者
  • QAテスト担当者がアプリの安定性を検証しています

注意事項

  • プロダクションビルドではオーバーレイを無効にする必要があります
  • 重い使用時にパフォーマンスにわずかな影響を与える可能性があります
  • エンドユーザーの可視性を想定していません
  • アプリエントリポイントでの手動統合が必要です
  • レイアウトのカスタマイズオプションが限られている
  • アクティブな開発セッション中に最も効果的に使用されます

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

performance Pub version demo badge Twitter Follow

Performance overlay for Flutter apps that works on web.

sample

Reading the charts

You can read the charts in the performance overlay like this:

  • Every bar represents a single frame.
  • The height of each bar represents the total time it took to render the frame.
  • The line indicates the target frame time (e.g. 16ms for 60 FPS) and frames that cross that line turn red.
  • The overlay is divided into three charts.
    • UI: the time it takes the UI to build.
    • Raster: the time it takes to rasterize the frame.
    • High latency: the total time between vsync start and raster finish, i.e. the time it takes from an input to seeing the next frame.
  • The "max" value shows how long the worst sample in the displayed range took.
  • The "avg" value represents the average of all samples in the displayed range.
  • The displayed FPS value indicates the best logically possible number of frames that could have been rendered per second. This might not be the actual value, but the actual value is definitely not greater than this. This is computed based on the average.

Limitations

The package is based on the FrameTiming API. Everything documented there applies. This should correspond one to one with the values you see in the framework performance overlay on mobile and on native desktop. So if you like how this looks better, you can also use this package on mobile and native desktop :)

On web, however, it shows somewhat limited data. This is because performance data from the GPU on web is not available in the FrameTiming instances (which would be part of the raster duration on native). What is included in the raster duration on web are only parts of what is done on the GPU thread on native (due to limitations on the web which require running the computations on the UI thread). If you want to access the GPU performance data, you can use Chrome DevTools or chrome://tracing for example.

Repo structure

This repo currently contains the following packages:

Package Contents
performance The actual performance Flutter package for the performance overlay that is also hosted on Pub.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。