Scalability: added an option to disable retrieval of object instance count by class statistics when capturing performance snapshots (available in performance snapshots under "Memory", "Memory & GC Telemetry") which in some cases may take noticeable time depending on heap size.
To disable the statistics when capturing performance snapshots from the profiler UI,
add the line
To disable the statistics when capturing performance snapshots via API or triggers,
specify the agent startup option
_enable_thread_gcenables thread metadata cleanup. This helps to address the issue of a memory leak in applications constantly starting short living threads. For detail see this thread.