Mercurial > hg > truffle
comparison src/os/linux/vm/os_linux.cpp @ 3800:bf6481e5f96d
7061225: os::print_cpu_info() should support os-specific data
Reviewed-by: dholmes, never, jwilhelm, kvn
author | jcoomes |
---|---|
date | Wed, 06 Jul 2011 13:02:54 -0700 |
parents | 97b64f73103b |
children | b0b8491925fe |
comparison
equal
deleted
inserted
replaced
3799:48048b59a551 | 3800:bf6481e5f96d |
---|---|
2083 st->print("\n/proc/meminfo:\n"); | 2083 st->print("\n/proc/meminfo:\n"); |
2084 _print_ascii_file("/proc/meminfo", st); | 2084 _print_ascii_file("/proc/meminfo", st); |
2085 st->cr(); | 2085 st->cr(); |
2086 } | 2086 } |
2087 | 2087 |
2088 void os::pd_print_cpu_info(outputStream* st) { | |
2089 st->print("\n/proc/cpuinfo:\n"); | |
2090 if (!_print_ascii_file("/proc/cpuinfo", st)) { | |
2091 st->print(" <Not Available>"); | |
2092 } | |
2093 st->cr(); | |
2094 } | |
2095 | |
2088 void os::print_memory_info(outputStream* st) { | 2096 void os::print_memory_info(outputStream* st) { |
2089 | 2097 |
2090 st->print("Memory:"); | 2098 st->print("Memory:"); |
2091 st->print(" %dk page", os::vm_page_size()>>10); | 2099 st->print(" %dk page", os::vm_page_size()>>10); |
2092 | 2100 |