sunxlab 发表于 2007-05-23 10:43

Solaris10 DTrace(动态跟踪)技术介绍及实践

一、DTrace概述:
    DTrace(Dynamic Tracing的缩写),是 Solaris10 中的一个新特性。此特性可以提供动态检测操作系统内核和用户进程,统计和检测系统的资源使用状况,查找和定位程序中的瓶颈等。这些信息为用户改进程序,提高程序性能,节约维护成本等都很有帮助。
    本文提供了DTrace方面的介绍和一些练习。读者可以下载并学习使用。
二、DTrace介绍:
    见PDF格式的PPT文档。
http://control.cublog.cn/fileicon/pdf.gif
文件:
DTrace_slides.pdf
大小:
425KB
下载:
下载


三、DTrace练习:
    1.练习代码下载
http://control.cublog.cn/fileicon/zip.gif
文件:
dtrace_script.zip
大小:
3KB
下载:
下载
      2.练习一(First D script -- Hello World)
               
   


   3.练习二(Predicate and Action)
         
   4.练习三(how to do sort of flow control in D)

      

   5.练习四(Aggregation)
      

   6.练习五(Calculating time spent)
      

   7.练习六(PID provider)
      

   8.练习七(ustack)
      



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/37326/showart_307641.html
页: [1]
查看完整版本: Solaris10 DTrace(动态跟踪)技术介绍及实践