mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8221535: add steal tick related information to hs_error file [linux]
Reviewed-by: dholmes, goetz
This commit is contained in:
parent
3ca21234ce
commit
8f556345e1
4 changed files with 127 additions and 104 deletions
|
@ -336,20 +336,8 @@ static OSReturn get_total_ticks(int which_logical_cpu, CPUPerfTicks* pticks) {
|
|||
|
||||
fclose(fh);
|
||||
if (n < expected_assign_count || logical_cpu != which_logical_cpu) {
|
||||
#ifdef DEBUG_LINUX_PROC_STAT
|
||||
vm_fprintf(stderr, "[stat] read failed");
|
||||
#endif
|
||||
return OS_ERR;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_LINUX_PROC_STAT
|
||||
vm_fprintf(stderr, "[stat] read "
|
||||
UINT64_FORMAT " " UINT64_FORMAT " " UINT64_FORMAT " " UINT64_FORMAT " "
|
||||
UINT64_FORMAT " " UINT64_FORMAT " " UINT64_FORMAT " \n",
|
||||
userTicks, niceTicks, systemTicks, idleTicks,
|
||||
iowTicks, irqTicks, sirqTicks);
|
||||
#endif
|
||||
|
||||
pticks->used = userTicks + niceTicks;
|
||||
pticks->usedKernel = systemTicks + irqTicks + sirqTicks;
|
||||
pticks->total = userTicks + niceTicks + systemTicks + idleTicks +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue