public string BuildProfilerReport() { _pagePerfMeasuring.Dispose(); var measurement = Profiler.EndProfiling(); var str = String.Format("<?xml version=\"1.0\"?>\r\n" + "<?xml-stylesheet type=\"text/xsl\" href=\"{0}\"?>", ProfilerXslPath); var element = ProfilerReport.BuildReportXml(measurement); var builder = new UrlBuilder(_context.Request.Url.ToString()); builder["c1mode"] = null; element.Add(new XAttribute("url", builder)); return(str + element); }
/// <exclude /> public string BuildProfilerReport() { _pagePerfMeasuring.Dispose(); Measurement measurement = Profiler.EndProfiling(); string xmlHeader = @"<?xml version=""1.0""?> <?xml-stylesheet type=""text/xsl"" href=""{0}""?>" .FormatWith(ProfilerXslPath); XElement reportXml = ProfilerReport.BuildReportXml(measurement); var url = new UrlBuilder(HttpContext.Current.Request.Url.ToString()); url["c1mode"] = null; reportXml.Add(new XAttribute("url", url), new XAttribute("consoleUrl", UrlUtils.AdminRootPath)); return(xmlHeader + reportXml); }