- System requirements
- Profiler architecture
- Profiler installation
- Uninstall profiler
- Running the profiler
- Profiler activation
- Welcome screen
- Start profiling
- Profiling overhead
- Snapshots
- Solving performance problems
- CPU profiling
- Thread profiling
- Virtual threads support
- Object allocation profiling
- Memory profiling
- Monitor profiling
- Exception profiling
- Telemetry
- Probes: monitor events of various kinds
- Inspections: automatic recognition of typical problems
- Automatically trigger actions on event
- Automatic deobfuscation
- Summary
- Filters
- Profiler command line
- Export of profiling results to external formats
- Profiler Java API
- Profiler HTTP API
- Settings
- Troubleshooting and FAQ
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
- This is an extremely lightweight mode. Thanks to its low overhead, object counting can be used in production.
- Object counting records the class, method, and line number where the object was created, as well as the type of the created object.
Limitations
- This mode does not record the sizes of created objects — only their count.
- The thread in which the object was created and the full stack trace are not available.