Add support for native (JNI) calls to the trace tools.
Also fix a bug in profile_pid.cpp and add better output to
stack_dump.cpp.
diff --git a/emulator/qtools/profile_pid.cpp b/emulator/qtools/profile_pid.cpp
index 589abe9..11acbf9 100644
--- a/emulator/qtools/profile_pid.cpp
+++ b/emulator/qtools/profile_pid.cpp
@@ -84,10 +84,11 @@
printf("%5d %5d %10llu %6.2f %6.2f %5s %s",
pstate->pid, pstate->parent_pid, pstate->cpu_time,
per, sum_per, print_flags, pstate->name);
- for (int ii = 1; ii < pstate->argc; ++ii) {
- printf(" %s", pstate->argv[ii]);
+ for (int jj = 1; jj < pstate->argc; ++jj) {
+ printf(" %s", pstate->argv[jj]);
}
printf("\n");
}
+ delete trace;
return 0;
}