The Profiler Markers search provider searches the Profiler data of scripts that use the ProfilerMarker API.
You can use the Profiler Markers search provider in two windows:
Provider token: profile:
Query example: Searches the profiler markers for the text active and a sample count of over 1000.
profile: count>1000 active
The Profiler Markers 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.
To learn more about these markers, refer to the Profiler markers reference.
Search window tab: Profile Markers.
The recommended best practice is to use the table view for these results.
The context menu for the Profiler Markers 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. |