New answers tagged

5

The class of interest here is Sitecore.Diagnostics.PerformanceCounters.DataCount (in Sitecore.Kernel.dll). You can simply use the following technique: var initialItemsAccessed = Sitecore.Diagnostics.PerformanceCounters.DataCount.DataItemsAccessed.Value; SomeMethod();//the method you want to assess var totalItemsAccessed = Sitecore.Diagnostics....


Top 50 recent answers are included