奥门金沙糖果派对网站-金沙糖果派对手机版

Android培训课程-Using dmtracedump dmtracedump用法

来源:四维梦工场    编辑:Anonymous    时间:2013/9/12    点击数:

Android培训课程-解析Using dmtracedump dmtracedump用法 


Using dmtracedump dmtracedump用法 

The Android SDK includes dmtracedump, a tool that gives you an alternate way of generating graphical call-stack diagrams from trace log files. The tool uses the Graphviz Dot utility to create the graphical output, so you need to install Graphviz before running dmtracedump. 


The dmtracedump tool generates the call stack data as a tree diagram, with each call represented as a node. It shows call flow (from parent node to child nodes) using arrows. The diagram below shows an example of dmtracedump output. 


Android SDK有一个dmtracedump工具,这个工具可以让从跟踪日志中生图形化的方法调用图和堆栈图。工具使用Graphviz Dot组件来生成图形的,所以要运行dmtracedump就必须先安装Graphviz。 


Dmtracedump用树状图来表示堆栈数据,每一个数据用一个节点来表示。用箭头来表示(从父节点到子节点的)调用。下图显示了dmtracedump输出的一个例子。 


For each node, dmtracedump showscallname (,,), where 


-- Call reference number, as used in trace logs 

-- Inclusive elapsed time (milliseconds spent in method, including all child methods) 

-- Exclusive elapsed time (milliseconds spent in method, not including any child methods) 

-- Number of calls 

The usage for dmtracedump is: 


对于每个节点,dmtracedump显示格式:callname (,,),其中: 


-- 编号 

-- Inclusive时间总和(微秒为单位,包括子方法时间) 

-- Exclusive时间总和(微秒为单位,不包括子方法时间) 

-- 调用次数 

dmtracedump用法: 


   dmtracedump [-ho] [-s sortable] [-d trace-base-name] [-g outfile]


The tool then loads trace log data from.data and.key. The table below lists the options for dmtracedump. 


这个工具从.data and.key加载日志数据。下表描述dmtracedump的选项列表: 


Option  Description  

-d Diff with this trace name  

-g Generate output to 

-h  Turn on HTML output  

-o  Dump the trace file instead of profiling  

-d URL base to the location of the sortable javascript file  

-t Minimum threshold for including child nodes in the graph (child's inclusive time as a percentage of parent inclusive time). If this option is not used, the default threshold is 20%.  




XML 地图 | Sitemap 地图