|
From: John R. <jr...@Bi...> - 2013-11-21 19:42:54
|
> I'm trying to use callgrind with an APK in the emulator with API15 and valgrind 3.9 without any success. > > Can valgrind instrument APKs or not? No. An .apk is a file which is a container for many kinds of information. Valgrind tools instrument the instantiation of a process, and not a container. The "hook" for valgrind, the place where valgrind intercepts control and begins co-execution of the valgrind tool with the target program, is execve(). execve() is an very clean interface. The operating system discards entirely the old memory image, and instantiates a new memory image "from scratch." This cleanliness is essential for the valgrind tool to identify and understand easily the initial state of what is being instrumented. -- |