IAnalyticsMonitor TrackFeatureStart Method .NET Progress Telerik Platform Analytics Monitor Documentation, API Reference, Online Help | WPF, Silverlight, WinForms, Windows Phone Application Analytics
Register the start of a feature usage. Use this with TrackFeatureStop(String) to track how long a feature is used.

Namespace: EQATEC.Analytics.Monitor
Assembly: EQATEC.Analytics.Monitor (in EQATEC.Analytics.Monitor.dll) Version: 3.2.144.0 (3.2.144)
Syntax

ITimingScope TrackFeatureStart(
	string featureName
)

Parameters

featureName
Type: OnlineSystem String
The name of the feature. If it is null or empty the request is ignored.

Return Value

A ITimingScope instance that can be used for creating more compact timing code.
Remarks

There cannot be more then one feature timing running with a given featureName at a time. This implies that calling this method multiple times with the same featureName has no effect until the existing time has termined by either calling TrackFeatureStop(String) or TrackFeatureCancel(String) with the same featureName. All features timings are implicitly stopped by calling Stop .
Examples

The following shows an example of how you can track feature time in your application
try 
{
   m_monitor.TrackFeatureStart("SomeClass.Process");
   //some process logic to time
   m_monitor.TrackFeatureStop("SomeClass.Process");
}
catch(Exception exc)
{
  m_monitor.TrackFeatureCancel("SomeClass.Process");
  throw;
}
See Also