equal
deleted
inserted
replaced
54 #include "oops/oop.inline.hpp" |
54 #include "oops/oop.inline.hpp" |
55 #include "oops/symbol.hpp" |
55 #include "oops/symbol.hpp" |
56 #include "prims/jvmtiExport.hpp" |
56 #include "prims/jvmtiExport.hpp" |
57 #include "runtime/arguments.hpp" |
57 #include "runtime/arguments.hpp" |
58 #include "runtime/biasedLocking.hpp" |
58 #include "runtime/biasedLocking.hpp" |
59 #include "runtime/compilationPolicy.hpp" |
|
60 #include "runtime/deoptimization.hpp" |
59 #include "runtime/deoptimization.hpp" |
61 #include "runtime/flags/flagSetting.hpp" |
60 #include "runtime/flags/flagSetting.hpp" |
62 #include "runtime/handles.inline.hpp" |
61 #include "runtime/handles.inline.hpp" |
63 #include "runtime/init.hpp" |
62 #include "runtime/init.hpp" |
64 #include "runtime/interfaceSupport.inline.hpp" |
63 #include "runtime/interfaceSupport.inline.hpp" |
201 if (CountBytecodes || TraceBytecodes || StopInterpreterAt) { |
200 if (CountBytecodes || TraceBytecodes || StopInterpreterAt) { |
202 tty->print_cr("[BytecodeCounter::counter_value = %d]", BytecodeCounter::counter_value()); |
201 tty->print_cr("[BytecodeCounter::counter_value = %d]", BytecodeCounter::counter_value()); |
203 } |
202 } |
204 } |
203 } |
205 |
204 |
206 AllocStats alloc_stats; |
|
207 |
|
208 |
|
209 |
205 |
210 // General statistics printing (profiling ...) |
206 // General statistics printing (profiling ...) |
211 void print_statistics() { |
207 void print_statistics() { |
212 #ifdef ASSERT |
208 #ifdef ASSERT |
213 |
209 |
308 } |
304 } |
309 |
305 |
310 // CodeHeap State Analytics. |
306 // CodeHeap State Analytics. |
311 // Does also call NMethodSweeper::print(tty) |
307 // Does also call NMethodSweeper::print(tty) |
312 if (PrintCodeHeapAnalytics) { |
308 if (PrintCodeHeapAnalytics) { |
313 CompileBroker::print_heapinfo(NULL, "all", "4096"); // details |
309 CompileBroker::print_heapinfo(NULL, "all", 4096); // details |
314 } else if (PrintMethodFlushingStatistics) { |
310 } else if (PrintMethodFlushingStatistics) { |
315 NMethodSweeper::print(tty); |
311 NMethodSweeper::print(tty); |
316 } |
312 } |
317 |
313 |
318 if (PrintCodeCache2) { |
314 if (PrintCodeCache2) { |
327 if (VerifyOops && Verbose) { |
323 if (VerifyOops && Verbose) { |
328 tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count()); |
324 tty->print_cr("+VerifyOops count: %d", StubRoutines::verify_oop_count()); |
329 } |
325 } |
330 |
326 |
331 print_bytecode_count(); |
327 print_bytecode_count(); |
332 if (PrintMallocStatistics) { |
|
333 tty->print("allocation stats: "); |
|
334 alloc_stats.print(); |
|
335 tty->cr(); |
|
336 } |
|
337 |
328 |
338 if (PrintSystemDictionaryAtExit) { |
329 if (PrintSystemDictionaryAtExit) { |
339 ResourceMark rm; |
330 ResourceMark rm; |
340 MutexLocker mcld(ClassLoaderDataGraph_lock); |
331 MutexLocker mcld(ClassLoaderDataGraph_lock); |
341 SystemDictionary::print(); |
332 SystemDictionary::print(); |
376 } |
367 } |
377 |
368 |
378 // CodeHeap State Analytics. |
369 // CodeHeap State Analytics. |
379 // Does also call NMethodSweeper::print(tty) |
370 // Does also call NMethodSweeper::print(tty) |
380 if (PrintCodeHeapAnalytics) { |
371 if (PrintCodeHeapAnalytics) { |
381 CompileBroker::print_heapinfo(NULL, "all", "4096"); // details |
372 CompileBroker::print_heapinfo(NULL, "all", 4096); // details |
382 } else if (PrintMethodFlushingStatistics) { |
373 } else if (PrintMethodFlushingStatistics) { |
383 NMethodSweeper::print(tty); |
374 NMethodSweeper::print(tty); |
384 } |
375 } |
385 |
376 |
386 #ifdef COMPILER2 |
377 #ifdef COMPILER2 |