バージョン

menu_open
Wwise SDK 2023.1.4
ak.wwise.core.profiler.getCpuUsage

Retrieves CPU usage statistics at a specific profiler capture time. This data can also be found in the Advanced Profiler, under the CPU tab. To ensure the CPU data is received, refer to ak.wwise.core.profiler.enableProfilerData. The returned data includes "Inclusive" and "Exclusive" values, where "Inclusive" refers to the time spent in the element plus the time spent in any called elements, and "Exclusive" values pertain to execution only within the element itself.

Arguments

Name タイプ 概要
time * one of: Time in milliseconds to query for cpu data, or a Time Cursor from which to acquire the time. User Time Cursorはユーザーが操作できるもので、Capture Time Cursorは現在のキャプチャの最後の時間を表すものです。
integer 範囲: [0,*]
string グローバルのプロファイラカーソルの1つを特定します。可能な値:
  • user
  • capture

(必須*)

引数スキーマ

Result

Name タイプ 概要
return * array Array of CPU statistics for each element.
return [...] object Information about the amount of CPU percentage used by each element.
return[...].elementName string The name of the element on which we calculate CPU usage.
return[...].id integer Class ID of the element.
return[...].instances integer An estimation of the number of instances of the element.
return[...].type string The type of element. For example, Codec, Source, Effect, Mixer or Sink.
return[...].percentInclusive number The percentage of CPU time spent in the execution of the element and those that it uses (calls).
return[...].percentExclusive number The percentage of CPU time spent only in the execution of the element itself.
return[...].millisecondsInclusive number The milliseconds of CPU time spent in the execution of the element and those that it uses (calls).
return[...].millisecondsExclusive number The milliseconds of CPU time spent only in the execution of the element itself.

(必須*)

結果スキーマ

関連情報

Wwise Authoring APIの詳細は、 Wwise Authoring API (WAAPI)を使用する を参照してください。


このページはお役に立ちましたか?

サポートは必要ですか?

ご質問や問題、ご不明点はございますか?お気軽にお問い合わせください。

サポートページをご確認ください

あなたのプロジェクトについて教えてください。ご不明な点はありませんか。

プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。

Wwiseからはじめよう