[PATCH] egltrace/android: Fix tracing Zygote processes (v2)
Alexander Monakov
amonakov at ispras.ru
Tue Jun 11 12:57:03 PDT 2013
On Wed, Jun 12, 2013 at 3:33 AM, Chad Versace
<chad.versace at linux.intel.com> wrote:
> I've instrumented some logging around the call to trimDirectory in the
> troublesome location. Here's the code context:
>
> ----
> proc_name = getZygoteProcessName();
> os::log("apitrace[%d]:%s: proc_name=\"%s\"\n", pid, __PRETTY_FUNCTION__,
> proc_name.str());
> proc_name.trimDirectory();
> os::log("apitrace[%d]:%s: proc_name=\"%s\"\n", pid, __PRETTY_FUNCTION__,
> proc_name.str());
> ----
>
> And here's the log:
>
> ----
> D/apitrace( 3747): apitrace:void os::String::trimDirectory():
> buffer="com.forthblue.pool"
> D/apitrace( 3747): apitrace:void os::String::trimDirectory(): buffer="bin"
> ----
Hm, the log you're showing does not match the printf format above at all.
Isn't the VM changing the process name from/to "bin" to/from
"com.bla.bla" at some point?
Alexander
More information about the apitrace
mailing list