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.
This commit is contained in:
@@ -84,10 +84,11 @@ int main(int argc, char **argv) {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user