Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit bd73875

Browse files
authored
Update sys-dm-exec-procedure-stats-transact-sql.md
1 parent 7cb52aa commit bd73875

1 file changed

Lines changed: 30 additions & 27 deletions

File tree

docs/relational-databases/system-dynamic-management-views/sys-dm-exec-procedure-stats-transact-sql.md

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "sys.dm_exec_procedure_stats (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "03/16/2017"
4+
ms.date: "01/10/2018"
55
ms.prod: "sql-non-specified"
66
ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw"
77
ms.service: ""
@@ -49,28 +49,32 @@ ms.workload: "Active"
4949
|**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.|
5050
|**cached_time**|**datetime**|Time at which the stored procedure was added to the cache.|
5151
|**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.|
5454
|**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.|
7070
|**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)]|
7478

7579
<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.
7680

@@ -84,7 +88,7 @@ On [!INCLUDE[ssSDS_md](../../includes/sssds-md.md)] Premium Tiers, requires the
8488
## Examples
8589
The following example returns information about the top ten stored procedures identified by average elapsed time.
8690

87-
```
91+
```sql
8892
SELECT TOP 10 d.object_id, d.database_id, OBJECT_NAME(object_id, database_id) 'proc name',
8993
d.cached_time, d.last_execution_time, d.total_elapsed_time,
9094
d.total_elapsed_time/d.execution_count AS [avg_elapsed_time],
@@ -94,11 +98,10 @@ ORDER BY [total_worker_time] DESC;
9498
```
9599

96100
## See Also
97-
[Execution Related Dynamic Management Views and Functions &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/execution-related-dynamic-management-views-and-functions-transact-sql.md)
98-
[sys.dm_exec_sql_text &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-exec-sql-text-transact-sql.md)
99-
[sys.dm_exec_query_stats &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-exec-query-stats-transact-sql.md)
100-
101-
[sys.dm_exec_trigger_stats &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-exec-trigger-stats-transact-sql.md)
101+
[Execution Related Dynamic Management Views and Functions &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/execution-related-dynamic-management-views-and-functions-transact-sql.md)
102+
[sys.dm_exec_sql_text &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-exec-sql-text-transact-sql.md)
103+
[sys.dm_exec_query_stats &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-exec-query-stats-transact-sql.md)
104+
[sys.dm_exec_trigger_stats &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-exec-trigger-stats-transact-sql.md)
102105

103106

104107

0 commit comments

Comments
 (0)