mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8027294: Prepare hotspot for non TOD based uptime counter
Use HR timer when available for os::elapsed_counter() on linux/bsd. Add a new counter for the JVM uptime. Reviewed-by: dholmes, sla
This commit is contained in:
parent
86cd1aaa73
commit
76ac5b0c28
4 changed files with 12 additions and 12 deletions
|
@ -1032,6 +1032,9 @@ static jlong get_long_attribute(jmmLongAttribute att) {
|
|||
case JMM_JVM_INIT_DONE_TIME_MS:
|
||||
return Management::vm_init_done_time();
|
||||
|
||||
case JMM_JVM_UPTIME_MS:
|
||||
return Management::ticks_to_ms(os::elapsed_counter());
|
||||
|
||||
case JMM_COMPILE_TOTAL_TIME_MS:
|
||||
return Management::ticks_to_ms(CompileBroker::total_compilation_ticks());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue