/// <summary>
 /// Returns the <c>css</c> and <c>javascript</c> includes needed to display the MiniProfiler results UI.
 /// </summary>
 /// <param name="profiler">The profiler this extension method is called on</param>
 /// <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="showControls">when true, shows buttons to minimize and clear MiniProfiler results</param>
 /// <param name="startHidden">Should the profiler start as hidden. Default to null.</param>
 /// <returns>Script and link elements normally; an empty string when there is no active profiling session.</returns>
 public static IHtmlString RenderIncludes(
     this MiniProfiler profiler,
     RenderPosition?position   = null,
     bool?showTrivial          = null,
     bool?showTimeWithChildren = null,
     int?maxTracesToShow       = null,
     bool?showControls         = null,
     bool?startHidden          = null)
 {
     return(MiniProfilerHandler.RenderIncludes(
                profiler,
                position,
                showTrivial,
                showTimeWithChildren,
                maxTracesToShow,
                showControls,
                startHidden));
 }
 /// <summary>
 /// Returns the <c>css</c> and <c>javascript</c> 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="showControls">when true, shows buttons to minimize and clear MiniProfiler results</param>
 /// <param name="useExistingjQuery">
 /// Should MiniProfiler attempt to load its own version of jQuery, or rely on a version previously loaded on the page?
 /// </param>
 /// <param name="samplingOnly">The sampling Only.</param>
 /// <param name="startHidden">Should the profiler start as hidden. Default to null.</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?showControls         = null,
     bool?useExistingjQuery    = null,  // TODO: we need to deprecate this
     bool samplingOnly         = false, // TODO: can we remove this?
     bool?startHidden          = null)
 {
     return(MiniProfilerHandler.RenderIncludes(
                Current,
                position,
                showTrivial,
                showTimeWithChildren,
                maxTracesToShow,
                showControls,
                startHidden));
 }