Wwise SDK 2024.1.0
|
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.
名称 | 类型 | 说明 |
---|---|---|
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 | 识别其中一种全局性能分析器光标。可能的值:
|
(必填 *)
名称 | 类型 | 说明 |
---|---|---|
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) 章节。