public static System.Web.IHtmlString RenderIncludes(RenderPosition?position = null, bool?showTrivial = null, bool?showTimeWithChildren = null, int?maxTracesToShow = null, bool xhtml = false, bool?showControls = null) { var path = VirtualPathUtility.ToAbsolute("~"); return(MiniProfilerHandler.RenderIncludes(Profiler.Current, position, showTrivial, showTimeWithChildren, maxTracesToShow, xhtml, showControls, path) .ToMvcHtmlString()); }
/// <summary> /// Returns the css and javascript includes needed to display the MiniProfiler results UI. /// </summary> /// <param name="position">Which side of the page the profiler popup button should be displayed on (defaults to left)</param> /// <param name="showTrivial">Whether to show trivial timings by default (defaults to false)</param> /// <param name="showTimeWithChildren">Whether to show time the time with children column by default (defaults to false)</param> /// <param name="maxTracesToShow">The maximum number of trace popups to show before removing the oldest (defaults to 15)</param> /// <param name="xhtml">xhtml rendering mode, ensure script tag is closed ... etc</param> /// <param name="showControls">when true, shows buttons to minimize and clear MiniProfiler results</param> /// <returns>Script and link elements normally; an empty string when there is no active profiling session.</returns> public static IHtmlString RenderIncludes(RenderPosition?position = null, bool?showTrivial = null, bool?showTimeWithChildren = null, int?maxTracesToShow = null, bool xhtml = false, bool?showControls = null) { return(MiniProfilerHandler.RenderIncludes(Current, position, showTrivial, showTimeWithChildren, maxTracesToShow, xhtml, showControls)); }