Sha256: ea34b51710b083f50c8567f0d293aa410bb6e79dc98dceedf684c76cb3346c68
Contents?: true
Size: 1.03 KB
Versions: 40
Compression:
Stored size: 1.03 KB
Contents
# Copyright (c) 2013 AppNeta, Inc. # All rights reserved. module TraceView ## # This module provides a method to manually initialize the # Ruby instrumentation. Normally this is done by detecting # frameworks at load time and inserting initialization hooks. module Ruby class << self def initialize load end ## # The core method to load Ruby instrumentation. Call this # from raw Ruby scripts or in Ruby applications where a # supported framework isn't being used. Supported frameworks # will instead be detected at load time and initialization is # automatic. def load # In case some apps call this manually, make sure # that the gem is fully loaded and not in no-op # mode (e.g. on unsupported platforms etc.) if TraceView.loaded TraceView::Loading.load_access_key TraceView::Inst.load_instrumentation end end end end end if TraceView.loaded and !TraceView.framework? ::TraceView::Ruby.load end
Version data entries
40 entries across 40 versions & 1 rubygems