のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

dmtracedumpの使い方

Linux上の場合、動くのか、
Windows上の場合では、エラーになった。

d:\Users>dmtracedump ddms_2012.trace
ERROR: unable to read 8868773 bytes from trace file
Cannot read trace.

$ dmtracedump
Copyright (C) 2006 The Android Open Source Project

usage: D:\android-sdk-windows_r17\tools\dmtracedump.exe [-ho] [-s sortable] [-d trace-file-name] [-g outfile] trace-file-name
-d trace-file-name - Diff with this trace
-g outfile - Write graph to 'outfile'
-k - When writing a graph, keep the intermediate DOT file
-h - Turn on HTML output
-o - Dump the dmtrace file instead of profiling
-s - URL base to where the sortable javascript file
-t threshold - Threshold percentage for including nodes in the graph

dmtracedump -h ddms_20120919.trace > ddms_2012_0919.html

グラフを書くには、graphvizが必要だった。
dmtracedump -g outfile.png ddms_20120919_1836.trace

traceのまま
dmtracedump -o ddms_20120919_1836.trace

dmtracedump - Google グループ

android - How can i open .trace file format(traceview) without DDMS? - Stack Overflow