SQLSERVER性能计数器的简单剖析

php中文网
发布: 2016-06-07 15:45:40
原创
2550人浏览过
SQLSERVER性能计数器的简单剖析SQLSERVER性能计数器的简单剖析SQLSERVER性能计数器的简单剖析SQLSERVER性能计数器的简单剖析SQLSERVER性能计数器的简单剖析SQLSERVER性能计数器的简单剖析SQLSERVER性能计数器的简单剖析SQLSERVER性能计数器的简单剖析SQLSERVER性能计数器的简单剖析
<span> 1</span> <span>SELECT</span>  <span>[</span><span>counter_name</span><span>]</span><span> ,
</span><span> 2</span> <span>        "CPU Time:Total(ms)" ,
</span><span> 3</span> <span>        "CPU Time:Requests" ,
</span><span> 4</span> <span>        "Elapsed Time:Total(ms)" ,
</span><span> 5</span> <span>        "Elapsed Time:Requests"
</span><span> 6</span> <span>FROM</span>    ( <span>SELECT</span>    <span>[</span><span>counter_name</span><span>]</span><span> ,
</span><span> 7</span>                     <span>[</span><span>instance_name</span><span>]</span><span> ,
</span><span> 8</span>                     <span>[</span><span>cntr_value</span><span>]</span>
<span> 9</span>           <span>FROM</span>      sys.dm_os_performance_counters <span>--</span><span>计数器视图</span>
<span>10</span>           <span>WHERE</span>     <span>OBJECT_NAME</span> <span>LIKE</span> <span>'</span><span>%Batch Resp Statistics%</span><span>'</span>
<span>11</span>         ) os_pc PIVOT( <span>AVG</span>(<span>[</span><span>cntr_value</span><span>]</span>) <span>FOR</span> <span>[</span><span>instance_name</span><span>]</span> <span>IN</span><span> ( "CPU Time:Total(ms)",
</span><span>12</span> <span>                                                              "CPU Time:Requests",
</span><span>13</span> <span>                                                              "Elapsed Time:Total(ms)",
</span><span>14</span>                                                               "Elapsed Time:Requests" ) )<span>AS</span> Pvt;
登录后复制
<span>1</span> <span>SELECT</span> <span>COUNT</span> (<span>*</span>) <span>FROM</span> sys.dm_os_performance_counters
登录后复制
相关标签:
数码产品性能查询
数码产品性能查询

该软件包括了市面上所有手机CPU,手机跑分情况,电脑CPU,电脑产品信息等等,方便需要大家查阅数码产品最新情况,了解产品特性,能够进行对比选择最具性价比的商品。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号