Using Custom Performance Counters
schwartz
Posts: 5
I'm trying to profile an application which uses the .NET cache API and would like to be able to see the cache state (hits/misses/entries, etc).
I've tried adding the counters to the UserCounters.xml, however, they are not returning any data. A sample of what I'm trying to do in the xml is show below. Any help would be appreciated.
Update: I was able to access the same counter with PerfMon and it showed the expected results. So I do know that the counter is working.
I've tried adding the counters to the UserCounters.xml, however, they are not returning any data. A sample of what I'm trying to do in the xml is show below. Any help would be appreciated.
<Category Name="ASP.NET Applications"> <Counter Category="ASP.NET Applications" Name="Cache API Entries" Units="Number"> <Instanced /> </Counter> </Category>
Update: I was able to access the same counter with PerfMon and it showed the expected results. So I do know that the counter is working.
Comments
lodctr /R
to rebuild the little devils.
[/img]
If I set the counter as the "main counter" and use the "Selected point" tab it says "Cache API Entries: No data". The timeline graphs also don't show any data for the cache counters - I can see the default counters perfectly fine.