Sha256: 896a99fbe8b0671620687fe7f58a44c9b937510933d50f066c5d16cf33252a2e
Contents?: true
Size: 838 Bytes
Versions: 10
Compression:
Stored size: 838 Bytes
Contents
require "rorvswild/version" require "rorvswild/location" require "rorvswild/section" require "rorvswild/client" require "rorvswild/plugins" require "rorvswild/agent" module RorVsWild def self.start(config) @agent = Agent.new(config) end def self.agent @agent end def self.measure_code(code) agent ? agent.measure_code(code) : eval(code) end def self.measure_block(name, &block) agent ? agent.measure_block(name , &block) : block.call end def self.catch_error(extra_details = nil, &block) agent ? agent.catch_error(extra_details, &block) : block.call end def self.record_error(exception, extra_details = nil) agent.record_error(exception, extra_details) if agent end end if defined?(Rails) require "rorvswild/rails_loader" RorVsWild::RailsLoader.start_on_rails_initialization end
Version data entries
10 entries across 10 versions & 1 rubygems