Sampler
Provides control over a CPU Profiler label.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Class
- Namespace: UnityEngine.Profiling
- Assembly: UnityEngine.CoreModule
public class Sampler
Remarks
Sampler is a counter which produces timings information you can see in CPU Profiler. Use this class to get information about built-in or custom Profiler label.
Additional Resources: Sampler.Get, CustomSampler, CPU Usage Profiler.
Properties
Property | Description |
|---|---|
| isValid | Returns true if Sampler is valid. (Read Only) |
| name | Sampler name. (Read Only) |
Methods
Method | Description |
|---|---|
| GetRecorder | Returns Recorder associated with the Sampler. |