SQL Profiler Trace中的CPU和Duration分別使用的是什麼單位

來源:互聯網
上載者:User

從SQL 2005開始, 伺服器彙報某個事件的時間長度使用微秒(microseconds)作為單位.

         1微秒 = 10的-6次方秒

         1秒 = 1000000秒

 

CPU時間使用的是毫秒(Millisecond).

         1毫秒 = 10的-3次方秒

         1秒 = 1000毫秒

 

原文摘抄如下:

Beginning with SQL Server 2005, the server reports the duration of an event in microseconds (one millionth, or 10-6, of a second) and the amount of CPU time used by the event in milliseconds (one thousandth, or 10-3, of a second). In SQL Server 2000, the server reported both duration and CPU time in milliseconds. In SQL Server 2005 and later, the SQL Server Profiler graphical user interface displays the Duration column in milliseconds by default, but when a trace is saved to either a file or a database table, the Duration column value is written in microseconds.

 

參考資料:

Viewing and Analyzing Traces with SQL Server Profiler

http://msdn.microsoft.com/en-us/library/ms175848.aspx

SQL Profiler CPU / duration units

http://stackoverflow.com/questions/976628/sql-profiler-cpu-duration-units

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.