Performance counter

Code profiling for .NET developers.

Performance counter

Postby preetshari » Tue Sep 17, 2013 5:58 pm

How to create a # of gen 0 collections counter?
Posts: 2
Joined: Tue Sep 17, 2013 5:56 pm

Postby jessica.ramos » Wed Sep 18, 2013 7:29 pm

Hi preetshari,

Thank you for your post!

You'll need to add a custom counter to the profiler..

1. Create an XML file named UserCounters.xml in %LOCALAPPDATA%\\Red Gate\\ANTS Performance Profiler 82. In the file, add the following:

<Category Name=".NET CLR Memory">
<Counter Category=".NET CLR Memory" Name="# Gen 0 Collections" Units="Number">
<Instanced />

3. Save the file, restart the profiler, and then the # Gen 0 Collections counter should now be available to add from the ".NET CLR Memory" category

(for more information on adding custom counters, please see here: ... e+counters )
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Posts: 542
Joined: Mon Apr 23, 2012 12:13 pm

Return to ANTS Performance Profiler 8

Who is online

Users browsing this forum: No registered users and 0 guests