Performance counter

Code profiling for .NET developers.

Moderator: dom.smith

Performance counter

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

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

Postby jessica.ramos » Wed Sep 18, 2013 8: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:

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

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: http://documentation.red-gate.com/displ ... e+counters )
Jessica Ramos
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm


Return to ANTS Performance Profiler 8

Who is online

Users browsing this forum: No registered users and 0 guests