Ejemplo n.º 1
0
        public WebProfiler()
        {
            // create our own provider, which can provide a profiler even during boot
            _provider = new WebProfilerProvider();

            // settings
            MiniProfiler.Settings.SqlFormatter     = new SqlServerFormatter();
            MiniProfiler.Settings.StackMaxLength   = 5000;
            MiniProfiler.Settings.ProfilerProvider = _provider;
        }
Ejemplo n.º 2
0
        public WebProfiler()
        {
            // create our own provider, which can provide a profiler even during boot
            _provider = new WebProfilerProvider();

            //see https://miniprofiler.com/dotnet/AspDotNet
            MiniProfiler.Configure(new MiniProfilerOptions
            {
                SqlFormatter     = new SqlServerFormatter(),
                StackMaxLength   = 5000,
                ProfilerProvider = _provider
            });
        }
Ejemplo n.º 3
0
        public WebProfiler()
        {
            // create our own provider, which can provide a profiler even during boot
            _provider = new WebProfilerProvider();

            //see https://miniprofiler.com/dotnet/AspDotNet
            var options = new MiniProfilerOptions
            {
                SqlFormatter     = new SqlServerFormatter(),
                StackMaxLength   = 5000,
                ProfilerProvider = _provider
            };

            // this is a default path and by default it performs a 'contains' check which will match our content controller
            // (and probably other requests) and ignore them.
            options.IgnoredPaths.Remove("/content/");
            MiniProfiler.Configure(options);
        }