Hello,
I am trying to measure how much overhead IPC in Android causes.
For this I do a simple calculation of some random numbers once
in one Activity and a second time via a Service. When I compare
the run times, calculation via a Service is only about 20% as fast.
The time comparison does not say much about how much CPU time
is used. To get more details I would like to use qemu's -trace
switch [1].
Now I don't know what to do with the trace files named
qtrace.[bb, exc, insn, method, pid, static). The qtools from
android-src/development/emulator/qtools offer the executables
bb2sym, bbprof, bb_dump and check_trace. Can anyone give me some
hints on how to use those? They do produce a lot of output which
I don't know how to interpret.
Also the traceview tool which can be used to view traces gathered
with startMethodTracing() (android.os.Debug) looks quite good. Is
there
a way to convert the qemu trace files so they can be read with
traceview?
Thanks,
MartinD:
[1]
http://code.google.com/android/reference/android/os/Debug.html#startNativeTracing()