How to create a # of gen 0 collections counter?
preetshari
0

Comments

1 comment

  • Jessica R
    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 R
    0

Add comment

Please sign in to leave a comment.