Version: Unity 6.1 Alpha (6000.1)
Language : English
Navigating the Profiler window
Adding profiling information to your code introduction

Adding profiling information to your code

You can add profilerA window that helps you to optimize your game. It shows how much time is spent in the various areas of your game. For example, it can report the percentage of time spent rendering, animating, or in your game logic. More info
See in Glossary
markers and counters to your code to further understand specific performance data related to your application, and visualize that data in custom Profiler modules.

Topic Description
Adding profiling information to your code introduction Use profiler markersPlaced in code to describe a CPU or GPU event that is then displayed in the Unity Profiler window. Added to Unity code by default, or you can use ProfilerMarker API to add your own custom markers. More info
See in Glossary
and counters to collect specific data about your application.
Adding profiler markers to your code Add profiler markers to mark up areas of your code.
Adding profiler counters to your code Collect specific statistics with profiler countersPlaced in code with the ProfilerCounter API to track metrics, such as the number of enemies spawned in your game. More info
See in Glossary
.
Visualizing profiler counters Add profiler counters to custom Profiler modules.

Additional resources

Navigating the Profiler window
Adding profiling information to your code introduction