1 / 7

Heap Analysis Enhancements for TPTP 4.4

Heap Analysis Enhancements for TPTP 4.4. Asaf Yaffe Software and Solutions Group Intel Corporation. Heap Analysis – Use Cases. Display object allocation statistics over time Analyze object allocation. Use case – Object Allocation Statistics.

poppy
Download Presentation

Heap Analysis Enhancements for TPTP 4.4

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Heap Analysis Enhancements for TPTP 4.4 Asaf Yaffe Software and Solutions Group Intel Corporation

  2. Heap Analysis – Use Cases • Display object allocation statistics over time • Analyze object allocation

  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. 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. 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. Click a column to sort Double click a row to view allocation details (next slide). Available only if “track allocaiton site” option is selected Memory Statistics View

  7. 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) Allocation Details for a Selected Class

More Related