54 #include "runtime/sharedRuntime.hpp" |
54 #include "runtime/sharedRuntime.hpp" |
55 #include "runtime/statSampler.hpp" |
55 #include "runtime/statSampler.hpp" |
56 #include "runtime/task.hpp" |
56 #include "runtime/task.hpp" |
57 #include "runtime/timer.hpp" |
57 #include "runtime/timer.hpp" |
58 #include "runtime/vm_operations.hpp" |
58 #include "runtime/vm_operations.hpp" |
|
59 #include "services/memReporter.hpp" |
|
60 #include "services/memTracker.hpp" |
59 #include "trace/tracing.hpp" |
61 #include "trace/tracing.hpp" |
60 #include "trace/traceEventTypes.hpp" |
62 #include "trace/traceEventTypes.hpp" |
61 #include "utilities/dtrace.hpp" |
63 #include "utilities/dtrace.hpp" |
62 #include "utilities/globalDefinitions.hpp" |
64 #include "utilities/globalDefinitions.hpp" |
63 #include "utilities/histogram.hpp" |
65 #include "utilities/histogram.hpp" |
357 tty->print_cr("Compile::CompiledZap_count = %d", Compile::CompiledZap_count); |
359 tty->print_cr("Compile::CompiledZap_count = %d", Compile::CompiledZap_count); |
358 tty->print_cr("OptoRuntime::ZapDeadCompiledLocals_count = %d", OptoRuntime::ZapDeadCompiledLocals_count); |
360 tty->print_cr("OptoRuntime::ZapDeadCompiledLocals_count = %d", OptoRuntime::ZapDeadCompiledLocals_count); |
359 } |
361 } |
360 #endif // COMPILER2 |
362 #endif // COMPILER2 |
361 #endif // ENABLE_ZAP_DEAD_LOCALS |
363 #endif // ENABLE_ZAP_DEAD_LOCALS |
|
364 // Native memory tracking data |
|
365 if (PrintNMTStatistics) { |
|
366 if (MemTracker::is_on()) { |
|
367 BaselineTTYOutputer outputer(tty); |
|
368 MemTracker::print_memory_usage(outputer, K, false); |
|
369 } else { |
|
370 tty->print_cr(MemTracker::reason()); |
|
371 } |
|
372 } |
362 } |
373 } |
363 |
374 |
364 #else // PRODUCT MODE STATISTICS |
375 #else // PRODUCT MODE STATISTICS |
365 |
376 |
366 void print_statistics() { |
377 void print_statistics() { |
373 OptoRuntime::print_named_counters(); |
384 OptoRuntime::print_named_counters(); |
374 } |
385 } |
375 #endif |
386 #endif |
376 if (PrintBiasedLockingStatistics) { |
387 if (PrintBiasedLockingStatistics) { |
377 BiasedLocking::print_counters(); |
388 BiasedLocking::print_counters(); |
|
389 } |
|
390 |
|
391 // Native memory tracking data |
|
392 if (PrintNMTStatistics) { |
|
393 if (MemTracker::is_on()) { |
|
394 BaselineTTYOutputer outputer(tty); |
|
395 MemTracker::print_memory_usage(outputer, K, false); |
|
396 } else { |
|
397 tty->print_cr(MemTracker::reason()); |
|
398 } |
378 } |
399 } |
379 } |
400 } |
380 |
401 |
381 #endif |
402 #endif |
382 |
403 |