comparison src/os/windows/vm/os_windows.cpp @ 10372:e72f7eecc96d

8013895: G1: G1SummarizeRSetStats output on Linux needs improvemen Summary: Fixed the output of G1SummarizeRSetStats: too small datatype for the number of concurrently processed cards, added concurrent remembered set thread time retrieval for Linux and Windows (BSD uses os::elapsedTime() now), and other cleanup. The information presented during VM operation is now relative to the previous output, not always cumulative if G1SummarizeRSetStatsPeriod > 0. At VM exit, the code prints a cumulative summary. Reviewed-by: johnc, jwilhelm
author tschatzl
date Tue, 28 May 2013 09:32:06 +0200
parents a213d425d87a
children f2110083203d
comparison
equal deleted inserted replaced
10371:c20186fa611b 10372:e72f7eecc96d
811 result.dwHighDateTime = high(a); 811 result.dwHighDateTime = high(a);
812 result.dwLowDateTime = low(a); 812 result.dwLowDateTime = low(a);
813 return result; 813 return result;
814 } 814 }
815 815
816 // For now, we say that Windows does not support vtime. I have no idea 816 bool os::supports_vtime() { return true; }
817 // whether it can actually be made to (DLD, 9/13/05).
818
819 bool os::supports_vtime() { return false; }
820 bool os::enable_vtime() { return false; } 817 bool os::enable_vtime() { return false; }
821 bool os::vtime_enabled() { return false; } 818 bool os::vtime_enabled() { return false; }
819
822 double os::elapsedVTime() { 820 double os::elapsedVTime() {
823 // better than nothing, but not much 821 FILETIME created;
824 return elapsedTime(); 822 FILETIME exited;
823 FILETIME kernel;
824 FILETIME user;
825 if (GetThreadTimes(GetCurrentThread(), &created, &exited, &kernel, &user) != 0) {
826 // the resolution of windows_to_java_time() should be sufficient (ms)
827 return (double) (windows_to_java_time(kernel) + windows_to_java_time(user)) / MILLIUNITS;
828 } else {
829 return elapsedTime();
830 }
825 } 831 }
826 832
827 jlong os::javaTimeMillis() { 833 jlong os::javaTimeMillis() {
828 if (UseFakeTimers) { 834 if (UseFakeTimers) {
829 return fake_time++; 835 return fake_time++;