提供对低级别 Profiler API 访问权限的实用程序类。
使用 ProfilerUnsafeUtility 方法构建高级性能分析原语。
低级别 Profiler API 包含在发行版中。
CategoryAi | AI 和 NavMesh Profiler 类别。 |
CategoryAllocation | 内存分配 Profiler 类别。 |
CategoryAnimation | 动画 Profiler 类别。 |
CategoryAudio | 音频系统 Profiler 类别。 |
CategoryFileIO | 文件 IO Profiler 类别。 |
CategoryGUI | UI Profiler 类别。 |
CategoryInput | 输入系统 Profiler 类别。 |
CategoryInternal | 内部 Unity 系统 Profiler 类别。 |
CategoryLighting | 全局照明 Profiler 类别。 |
CategoryLoading | 加载系统 Profiler 类别。 |
CategoryNetwork | 网络系统 Profiler 类别。 |
CategoryOther | 未分类 Profiler 类别。 |
CategoryParticles | 粒子系统 Profiler 类别。 |
CategoryPhysics | 物理系统 Profiler 类别。 |
CategoryPhysics2D | Physics 2D 系统 Profiler 类别。 |
CategoryRender | 渲染系统 Profiler 类别。 |
CategoryScripts | 通用 C# 代码 Profiler 类别。 |
CategoryVideo | 视频系统 Profiler 类别。 |
CategoryVirtualTexturing | 虚拟纹理系统 Profiler 类别。 |
CategoryVr | VR 系统 Profiler 类别。 |
Timestamp | 获取 Profiler 时间戳。 |
TimestampToNanosecondsConversionRatio | 获取 Profiler 时间戳到纳秒的转换比率。 |
BeginSample | 开始分析使用 markerPtr 句柄定义的自定义名称标记的代码段。 |
BeginSampleWithMetadata | 开始分析使用 markerPtr 句柄和元数据参数定义的自定义名称标记的代码段。 |
CreateFlow | 创建一个新的 Profiler 流标识符。 |
CreateMarker | 构建用于代码检测的新 Profiler 标记句柄。 |
EndSample | 结束分析使用 ProfilerMarker 的此实例定义的自定义名称标记的代码段。 |
FlowEvent | 将流事件添加到 Profiler 样本中。 |
GetCategoryByName | 获取 Profiler 类别标识符。 |
GetCategoryDescription | 检索 Profiler 类别信息,例如名称或颜色。 |
SetMarkerMetadata | 设置 Profiler 标记元数据名称和类型。 |
SingleSampleWithMetadata | 创建使用 markerPtr 句柄和元数据参数定义的自定义名称的性能分析样本。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.