You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**plan_handle**|**varbinary(64)**|Identifier for the in-memory plan. This identifier is transient and remains constant only while the plan remains in the cache. This value may be used with the **sys.dm_exec_cached_plans** dynamic management view.<br /><br /> Will always be 0x000 when a natively compiled stored procedure queries a memory-optimized table.|
50
50
|**cached_time**|**datetime**|Time at which the stored procedure was added to the cache.|
51
51
|**last_execution_time**|**datetime**|Last time at which the stored procedure was executed.|
52
-
|**execution_count**|**bigint**|Number of times that the stored procedure has been executed since it was last compiled.|
53
-
|**total_worker_time**|**bigint**|Total amount of CPU time, in microseconds, that was consumed by executions of this stored procedure since it was compiled.<br /><br /> For natively compiled stored procedures, **total_worker_time** may not be accurate if many executions take less than 1 millisecond.|
52
+
|**execution_count**|**bigint**|The number of times that the stored procedure has been executed since it was last compiled.|
53
+
|**total_worker_time**|**bigint**|The total amount of CPU time, in microseconds, that was consumed by executions of this stored procedure since it was compiled.<br /><br /> For natively compiled stored procedures, **total_worker_time** may not be accurate if many executions take less than 1 millisecond.|
54
54
|**last_worker_time**|**bigint**|CPU time, in microseconds, that was consumed the last time the stored procedure was executed. <sup>1</sup>|
55
-
|**min_worker_time**|**bigint**|Minimum CPU time, in microseconds, that this stored procedure has ever consumed during a single execution. <sup>1</sup>|
56
-
|**max_worker_time**|**bigint**|Maximum CPU time, in microseconds, that this stored procedure has ever consumed during a single execution. <sup>1</sup>|
57
-
|**total_physical_reads**|**bigint**|Total number of physical reads performed by executions of this stored procedure since it was compiled.<br /><br /> Will always be 0 querying a memory-optimized table.|
58
-
|**last_physical_reads**|**bigint**|Number of physical reads performed the last time the stored procedure was executed.<br /><br /> Will always be 0 querying a memory-optimized table.|
59
-
|**min_physical_reads**|**bigint**|Minimum number of physical reads that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
60
-
|**max_physical_reads**|**bigint**|Maximum number of physical reads that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
61
-
|**total_logical_writes**|**bigint**|Total number of logical writes performed by executions of this stored procedure since it was compiled.<br /><br /> Will always be 0 querying a memory-optimized table.|
62
-
|**last_logical_writes**|**bigint**|Number of the number of buffer pool pages dirtied the last time the plan was executed. If a page is already dirty (modified) no writes are counted.<br /><br /> Will always be 0 querying a memory-optimized table.|
63
-
|**min_logical_writes**|**bigint**|Minimum number of logical writes that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
64
-
|**max_logical_writes**|**bigint**|Maximum number of logical writes that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
65
-
|**total_logical_reads**|**bigint**|Total number of logical reads performed by executions of this stored procedure since it was compiled.<br /><br /> Will always be 0 querying a memory-optimized table.|
66
-
|**last_logical_reads**|**bigint**|Number of logical reads performed the last time the stored procedure was executed.<br /><br /> Will always be 0 querying a memory-optimized table.|
67
-
|**min_logical_reads**|**bigint**|Minimum number of logical reads that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
68
-
|**max_logical_reads**|**bigint**|Maximum number of logical reads that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
69
-
|**total_elapsed_time**|**bigint**|Total elapsed time, in microseconds, for completed executions of this stored procedure.|
55
+
|**min_worker_time**|**bigint**|The minimum CPU time, in microseconds, that this stored procedure has ever consumed during a single execution. <sup>1</sup>|
56
+
|**max_worker_time**|**bigint**|The maximum CPU time, in microseconds, that this stored procedure has ever consumed during a single execution. <sup>1</sup>|
57
+
|**total_physical_reads**|**bigint**|The total number of physical reads performed by executions of this stored procedure since it was compiled.<br /><br /> Will always be 0 querying a memory-optimized table.|
58
+
|**last_physical_reads**|**bigint**|The number of physical reads performed the last time the stored procedure was executed.<br /><br /> Will always be 0 querying a memory-optimized table.|
59
+
|**min_physical_reads**|**bigint**|The minimum number of physical reads that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
60
+
|**max_physical_reads**|**bigint**|The maximum number of physical reads that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
61
+
|**total_logical_writes**|**bigint**|The total number of logical writes performed by executions of this stored procedure since it was compiled.<br /><br /> Will always be 0 querying a memory-optimized table.|
62
+
|**last_logical_writes**|**bigint**|The number of the number of buffer pool pages dirtied the last time the plan was executed. If a page is already dirty (modified) no writes are counted.<br /><br /> Will always be 0 querying a memory-optimized table.|
63
+
|**min_logical_writes**|**bigint**|The minimum number of logical writes that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
64
+
|**max_logical_writes**|**bigint**|The maximum number of logical writes that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
65
+
|**total_logical_reads**|**bigint**|The total number of logical reads performed by executions of this stored procedure since it was compiled.<br /><br /> Will always be 0 querying a memory-optimized table.|
66
+
|**last_logical_reads**|**bigint**|The number of logical reads performed the last time the stored procedure was executed.<br /><br /> Will always be 0 querying a memory-optimized table.|
67
+
|**min_logical_reads**|**bigint**|The minimum number of logical reads that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
68
+
|**max_logical_reads**|**bigint**|The maximum number of logical reads that this stored procedure has ever performed during a single execution.<br /><br /> Will always be 0 querying a memory-optimized table.|
69
+
|**total_elapsed_time**|**bigint**|The total elapsed time, in microseconds, for completed executions of this stored procedure.|
70
70
|**last_elapsed_time**|**bigint**|Elapsed time, in microseconds, for the most recently completed execution of this stored procedure.|
71
-
|**min_elapsed_time**|**bigint**|Minimum elapsed time, in microseconds, for any completed execution of this stored procedure.|
72
-
|**max_elapsed_time**|**bigint**|Maximum elapsed time, in microseconds, for any completed execution of this stored procedure.|
73
-
|**pdw_node_id**|**int**|**Applies to**: [!INCLUDE[ssSDWfull](../../includes/sssdwfull-md.md)], [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]<br /><br /> The identifier for the node that this distribution is on.|
71
+
|**min_elapsed_time**|**bigint**|The minimum elapsed time, in microseconds, for any completed execution of this stored procedure.|
72
+
|**max_elapsed_time**|**bigint**|The maximum elapsed time, in microseconds, for any completed execution of this stored procedure.|
73
+
|**total_spills**|**bigint**|The total number of pages spilled by execution of this trigger since it was compiled.<br /><br /> **Applies to**: Starting with [!INCLUDE[ssSQL17](../../includes/sssql17-md.md)] CU3|
74
+
|**last_spills**|**bigint**|The number of pages spilled the last time the trigger was executed.<br /><br /> **Applies to**: Starting with [!INCLUDE[ssSQL17](../../includes/sssql17-md.md)] CU3|
75
+
|**min_spills**|**bigint**|The minimum number of pages that this trigger has ever spilled during a single execution.<br /><br /> **Applies to**: Starting with [!INCLUDE[ssSQL17](../../includes/sssql17-md.md)] CU3|
76
+
|**max_spills**|**bigint**|The maximum number of pages that this trigger has ever spilled during a single execution.<br /><br /> **Applies to**: Starting with [!INCLUDE[ssSQL17](../../includes/sssql17-md.md)] CU3|
77
+
|**pdw_node_id**|**int**|The identifier for the node that this distribution is on.<br /><br />**Applies to**: [!INCLUDE[ssSDWfull](../../includes/sssdwfull-md.md)], [!INCLUDE[ssPDW](../../includes/sspdw-md.md)]|
74
78
75
79
<sup>1</sup> For natively compiled stored procedures when statistics collection is enabled, worker time is collected in milliseconds. If the query executes in less than a millisecond, the value will be 0.
76
80
@@ -84,7 +88,7 @@ On [!INCLUDE[ssSDS_md](../../includes/sssds-md.md)] Premium Tiers, requires the
84
88
## Examples
85
89
The following example returns information about the top ten stored procedures identified by average elapsed time.
86
90
87
-
```
91
+
```sql
88
92
SELECT TOP 10d.object_id, d.database_id, OBJECT_NAME(object_id, database_id) 'proc name',
@@ -94,11 +98,10 @@ ORDER BY [total_worker_time] DESC;
94
98
```
95
99
96
100
## See Also
97
-
[Execution Related Dynamic Management Views and Functions (Transact-SQL)](../../relational-databases/system-dynamic-management-views/execution-related-dynamic-management-views-and-functions-transact-sql.md)
[Execution Related Dynamic Management Views and Functions (Transact-SQL)](../../relational-databases/system-dynamic-management-views/execution-related-dynamic-management-views-and-functions-transact-sql.md)
0 commit comments