主权项 |
1. A method of instrumenting mobile applications, comprising:
converting, by a decompiler of an instrumentation tool, byte code of a compiled mobile application to source code; adding, by the instrumentation tool, instrumentation code into one or more selected classes of the source code by generating an instrumentation class in the source code for each of the one or more selected classes; compiling, by a compiler of the instrumentation tool, the source code including the instrumentation code into the byte code of the compiled mobile application; and reporting, by the byte code corresponding to the instrumentation code responsive to execution of the compiled mobile application, instrumentation data to one of a local file or a server. |