Performance counter

preetsharipreetshari Posts: 4
edited September 18, 2013 3:29PM in ANTS Performance Profiler 8
How to create a # of gen 0 collections counter?


  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    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 | Product Support Engineer | Redgate Software

    Have you visited our Help Center?

Sign In or Register to comment.