public void DoThing() { var timing = m_page.StartTiming("Do", "Thing", ""); Thread.Sleep(10); timing.Finish(); }
public void ApplicationStart() { if (_analyticsSession == null) { _analyticsSession = new AnalyticsSession(Domain, GaCode); } _page = _analyticsSession.CreatePageViewRequest( "/", // path "Main"); // page title _apptimer = _page.StartTiming("Application", "WPF", "ExecutionTime"); _page.SendEvent("Application", "AppStart", string.Empty, "1"); _page.Send(); }