The Performance Trackers search provider searches the 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 data of applications and the Unity Editor. For more information, refer to Collect performance data introduction.
You can use the Performance Trackers search provider in two windows:
Provider token: perf:
Query example: Searches the performance trackers for an Add Component Window
action with a sample count of over 1000
.
perf: count>1000 AddComponent
The Performance Tracker provider has additional filters in the visual query builder, using standard search query operators.
Filter | Search token | Query example | Description |
---|---|---|---|
Average (avg) | perf: avg=<value> |
perf: avg<512kb |
Searches for performance trackers with an average value smaller than 512kb . |
Last time | perf: lastTime=<value> |
perf: lastTime<1ms |
Searches for performance trackers that have been updated in the last millisecond. |
Peak | perf: peak=<value> |
perf: peak=0.5 |
Searches for performance trackers with a peak value of 0.5 . |
Sample count | perf: count=<value> |
perf: count=0.5 |
Searches for performance trackers with a sample count of 0.5 . This filter can’t use a unit. |
Total | perf: total=<value> |
perf: total=0.5 |
Searches for performance trackers with a total value of 0.5 . |
To match the unit the performance tracker logs, use different unit types with the filters. For example:
1ms
, use avg>1ms
.512kb
, use avg<512kb
.If you don’t specify the unit, the search returns trackers that report hits.
Note: The Sample Count filter never uses units.
Search window tab: Performance Trackers.
The recommended best practice is to use the table view for these results.
The context menu for the Performance Trackers search provider includes the following actions:
Action | Description |
---|---|
Profile | Runs the profiler on the selected item. This is the default double-click action. To change the default action, refer to Preferences. |
Enable Deep Profiling or Disable Deep Profiling | Toggles deep profiling for the selected item. |
Reset | Resets all results to 0 and starts profiling again. |
Callstack | Open the item’s call stack in the Console window. |