言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Profiler

Namespace: UnityEngine

Description

スクリプトからProfilerを扱います。

Profiler.BeginSample および Profiler.EndSample により自身のスクリプトにカスタムの Profiler セクションを追加できます。 スタンドアローン ゲームでは、Profiler.logFile および Profiler.enabled を使用して、Profiler は全てのプロファイリング情報をダンプできます。 Profiler は Unity Pro でのみ利用可能です。

Static Variables

enableBinaryLog Sets profiler output file in built players.
enabled プロファイラーの有効/無効を設定します
logFile Sets profiler output file in built players.
usedHeapSize プログラムが使用するヒープサイズ

Static Functions

AddFramesFromFile ログデータをプロファイラーに表示します
BeginSample カスタムラベルの付いたコードの一部のプロファイリングを開始します
EndSample カスタムラベルの付いたコードの一部のプロファイリングを終了します
GetMonoHeapSize Returns the size of the mono heap.
GetMonoUsedSize Returns the used size from mono.
GetRuntimeMemorySize リソースを使用した際のメモリ使用量を返します