Beispiel #1
0
        public ActionResult Statistics(SqlProfileResumeOrder order)
        {
            ProfilerPermission.ViewHeavyProfiler.AssertAuthorized();

            var list = HeavyProfiler.SqlStatistics().ToList().OrderByDescending(GetOrder(order));;

            ViewBag.Order = order;
            ViewData[ViewDataKeys.Title] = "Slowest SQLs";

            if (Request.IsAjaxRequest())
            {
                return(PartialView(ProfilerClient.ViewPrefix.FormatWith("StatisticsTable"), list));
            }
            else
            {
                return(View(ProfilerClient.ViewPrefix.FormatWith("Statistics"), list));
            }
        }