public void QueryUnderProfiler() { PersistentDataStoreProfiler prof = new PersistentDataStoreProfiler(data); using (var s = data.OpenSession()) { } Console.WriteLine("{0}", prof); }
public void CalcVisualization(IVisualization visualization) { PersistentDataStoreProfiler prof = new PersistentDataStoreProfiler(data); prof.Start(); using (var s = data.OpenSession()) { visualization.Calc(s); } prof.Stop(); LastVisualizationProfiling = string.Format( "Last visualization: queries = {0} time = {1}", prof.NumberOfQueries, prof.ElapsedTime.ToFormatedString() ); }