Posted On: Dec 8, 2020
Amazon CodeGuru Profiler now profiles your application’s memory, giving you a consolidated view of the heap. The heap summary shows all objects allocated on the heap during a given time frame. For each object (e.g. String, int, char, custom types, etc.) you can see a summed-up size and number of objects. These metrics are also presented in a time series so you can see how the object size or count changes over time.
Heap summary helps you solve memory problems. First, you can spot memory leaks. When this occurs, you can observe a constantly growing curve on the time series visualization for one or more of the objects. This trend is an indication of a possible memory issue. Second, you can use heap summary to optimize the memory footprint of your application. Knowing which objects take up the most memory will help you focus your optimization efforts on the parts of your application that are responsible for allocating and referencing objects of that type.
Amazon CodeGuru is a developer tool powered by machine learning that provides intelligent recommendations for improving code quality and identifying an applications most expensive lines of code. Developers can use Amazon CodeGuru Profiler to understand the runtime behavior of their applications, identify and remove code inefficiencies, improve performance, and significantly decrease compute costs.