Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy-to-use performance and memory .NET profiler for Windows, Linux and macOS.
Secure and easy profiling in cloud, containers and clustered environments.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Object counting

How object counting works

Object Counting is the most lightweight allocation profiling mode in YourKit Java Profiler. Use this mode to quickly obtain information about the number and types of objects created in the program. The performance impact is nearly zero, and the overhead for recording allocations is comparable to incrementing an integer counter.

Advantages

  1. This is an extremely lightweight mode. Thanks to its low overhead, object counting can be used in production.
  2. Object counting records the class, method, and line number where the object was created, as well as the type of the created object.

Limitations

  1. This mode does not record the sizes of created objects — only their count.
  2. The thread in which the object was created and the full stack trace are not available.

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.