Module: Rack::Insight

Extended by:
Logging
Defined in:
lib/rack/insight/magic_insight.rb,
lib/rack/insight.rb,
lib/rack/insight/app.rb,
lib/rack/insight/panel.rb,
lib/rack/insight/config.rb,
lib/rack/insight/render.rb,
lib/rack/insight/logging.rb,
lib/rack/insight/options.rb,
lib/rack/insight/toolbar.rb,
lib/rack/insight/version.rb,
lib/rack/insight/database.rb,
lib/rack/insight/panel_app.rb,
lib/rack/insight/path-filter.rb,
lib/rack/insight/enable-button.rb,
lib/rack/insight/panels-header.rb,
lib/rack/insight/panels-content.rb,
lib/rack/insight/rspec_matchers.rb,
lib/rack/insight/instrumentation.rb,
lib/rack/insight/panels/log_panel.rb,
lib/rack/insight/panels/sql_panel.rb,
lib/rack/insight/params_signature.rb,
lib/rack/insight/request-recorder.rb,
lib/rack/insight/default_invocation.rb,
lib/rack/insight/filtered_backtrace.rb,
lib/rack/insight/panels/cache_panel.rb,
lib/rack/insight/panels/mongo_panel.rb,
lib/rack/insight/panels/redis_panel.rb,
lib/rack/insight/panels/timer_panel.rb,
lib/rack/insight/path_match_filters.rb,
lib/rack/insight/panels/memory_panel.rb,
lib/rack/insight/panels/sphinx_panel.rb,
lib/rack/insight/redirect_interceptor.rb,
lib/rack/insight/instrumentation/probe.rb,
lib/rack/insight/panels/sql_panel/query.rb,
lib/rack/insight/panels/templates_panel.rb,
lib/rack/insight/panels/rails_info_panel.rb,
lib/rack/insight/rack_static_bug_avoider.rb,
lib/rack/insight/panels/cache_panel/stats.rb,
lib/rack/insight/panels/mongo_panel/stats.rb,
lib/rack/insight/panels/redis_panel/stats.rb,
lib/rack/insight/panels/speedtracer_panel.rb,
lib/rack/insight/panels/sphinx_panel/stats.rb,
lib/rack/insight/instrumentation/instrument.rb,
lib/rack/insight/panels/active_record_panel.rb,
lib/rack/insight/panels/sql_panel/panel_app.rb,
lib/rack/insight/panels/active_resource_panel.rb,
lib/rack/insight/panels/cache_panel/panel_app.rb,
lib/rack/insight/panels/templates_panel/stats.rb,
lib/rack/insight/panels/request_variables_panel.rb,
lib/rack/insight/panels/speedtracer_panel/tracer.rb,
lib/rack/insight/panels/templates_panel/rendering.rb,
lib/rack/insight/panels/active_resource_panel/query.rb,
lib/rack/insight/panels/speedtracer_panel/profiling.rb,
lib/rack/insight/panels/speedtracer_panel/trace-app.rb

Overview

For Magic Panels

Defined Under Namespace

Modules: FilteredBacktrace, Instrumentation, Logging, MagicInsight, Options, PathMatchFilters, Render, RspecMatchers, SpeedTracer Classes: ActiveRecordPanel, ActiveResourcePanel, App, CachePanel, Config, Database, DefaultInvocation, EnableButton, LogPanel, MemoryPanel, MongoPanel, Panel, PanelApp, PanelsContent, PanelsHeader, ParamsSignature, PathFilter, ProfilingSpeedTracer, RackStaticBugAvoider, RailsInfoPanel, RedirectInterceptor, RedisPanel, RequestRecorder, RequestVariablesPanel, SQLPanel, SphinxPanel, TemplatesPanel, TimerPanel, Toolbar

Constant Summary collapse

VERSION =
'0.6.4'

Class Method Summary collapse

Methods included from Logging

logger, verbose, verbosity

Class Method Details

.disableObject



14
15
16
# File 'lib/rack/insight.rb', line 14

def disable
  Thread.current["rack-insight.enabled"] = false
end

.enableObject



10
11
12
# File 'lib/rack/insight.rb', line 10

def enable
  Thread.current["rack-insight.enabled"] = true
end

.enabled?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/rack/insight.rb', line 18

def enabled?
  Thread.current["rack-insight.enabled"] == true
end