public WebProfilerComponent(IProfiler profiler, ILogger logger)
        {
            _profile = true;

            // although registered in WebRuntime.Compose, ensure that we have not
            // been replaced by another component, and we are still "the" profiler
            _profiler = profiler as WebProfiler;
            if (_profiler != null)
            {
                return;
            }

            // if VoidProfiler was registered, let it be known
            if (profiler is VoidProfiler)
            {
                logger.Info <WebProfilerComponent>("Profiler is VoidProfiler, not profiling (must run debug mode to profile).");
            }
            _profile = false;
        }