版本

menu_open
警告:系统已根据您所用大版本 (2023.1.8.8601) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2023.1.8
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

名称 类型 说明
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 识别其中一种全局性能分析器光标。可能的值:
  • user
  • capture

(必填 *)

参数架构

Result

名称 类型 说明
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 之旅