Download presentation
Presentation is loading. Please wait.
Published byJeremiah McMillan Modified over 10 years ago
1
TPTP 4.4 New Java Profiler (JVMTI) Test and Performance Tools Platform (TPTP) Heap Analysis Enhancements for TPTP 4.4 Asaf Yaffe Software and Solutions Group Intel Corporation
2
TPTP 4.4 New Java Profiler (JVMTI) Test and Performance Tools Platform (TPTP) 2 Heap Analysis – Use Cases Display object allocation statistics over time Analyze object allocation
3
TPTP 4.4 New Java Profiler (JVMTI) Test and Performance Tools Platform (TPTP) 3 Use case – Object Allocation Statistics Show the following statistical information about allocated objects, grouped by package/class: Package name Class name Number of live (non-collected) objects Size of live objects Total number of objects (including GCed) Total size of objects (including GCed) Average instance age Age = number of GCs an object survived Average age = sum(all ages) / Live Objects High average age => lingering instances => memory leak? Number of generations The number of different ages of live objects Many generations indicate that new instances are constantly allocated but old instanced are not GCed => memory leak?
4
TPTP 4.4 New Java Profiler (JVMTI) Test and Performance Tools Platform (TPTP) 4 Use case – Analyzing object allocations The user selects a class entry to view the allocation statistics for the class Allocation information is grouped by allocation site Same information as in previous use-case, plus Method name, signature, and defining class (and package) Source line number (if available) If source line information is not available for the method, information is grouped by method name
5
TPTP 4.4 New Java Profiler (JVMTI) Test and Performance Tools Platform (TPTP) 5 Heap Profiler Configuration User can decide whether or not to collect object allocation information Profiler application > Monitor > Java Profiling (Java 5.0 +) > Memory Analysis > Edit Options
6
TPTP 4.4 New Java Profiler (JVMTI) Test and Performance Tools Platform (TPTP) 6 Memory Statistics View Click a column to sort Double click a row to view allocation details (next slide). Available only if track allocaiton site option is selected
7
TPTP 4.4 New Java Profiler (JVMTI) Test and Performance Tools Platform (TPTP) 7 Allocation Details for a Selected Class Two allocation sites in function main(). Double click to view source code No source line information for toString(). All information presented in a single allocation site. Double click to view source file (if source file info is available)
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.