Highlights of the Code debugging tools Google provides for us: traceview and dmtracedump. With these two tools, we can easily Debug programs to analyze bugs. Traceview helps us analyze program performance. dmtracedump generates a function call diagram. Unfortunately, the dmtracedump provided by google is a failed tool and cannot be drawn. This article will introduce the solution in detail to implement plotting. Generate the. trace file android. OS. Debug class. Two important methods are Debug. startMethodTracing () and Debug. stopMethodTracing (). These two methods are used to create. trace file, which will be from Debug. startMethodTracing (), to Debug. stopMethodTracing () ends, during which all calling processes are stored in. the trace file contains the called function name and execution time. Add the following code to the start and end positions of the debugging code respectively. [Java] Debug. startMethodTracing ("test"); Debug. stopMethodTracing (); where the parameter test is the name of the trace file to be created, test. trace. The default path is/sdcard/test. trace. You can also Customize/data/log/test to indicate that the file is in/data/log/test. trace. Traceview is executed in the SDK:./traceview test. trace. We can get 1. Start and Stop times of each thread calling method in the Program 2. Function execution information and Efficiency Analysis