Exemplo n.º 1
0
        public void QueryUnderProfiler()
        {
            PersistentDataStoreProfiler prof = new PersistentDataStoreProfiler(data);

            using (var s = data.OpenSession())
            {
            }

            Console.WriteLine("{0}", prof);
        }
Exemplo n.º 2
0
        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()
                );
        }