lib/skylight.rb in skylight-0.2.0.beta.2 vs lib/skylight.rb in skylight-0.2.0.beta.3
- old
+ new
@@ -97,9 +97,18 @@
end
inst.instrument(category, title, desc, &blk)
end
+ def self.disable(&block)
+ unless inst = Instrumenter.instance
+ return yield if block_given?
+ return
+ end
+
+ inst.disable(&block)
+ end
+
RUBYBIN = File.join(
RbConfig::CONFIG['bindir'],
"#{RbConfig::CONFIG['ruby_install_name']}#{RbConfig::CONFIG['EXEEXT']}")
# Called by the standalone agent