You can add 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 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 markers 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. |