lib/new_relic/helper.rb in ghazel-newrelic_rpm-3.4.0.2 vs lib/new_relic/helper.rb in ghazel-newrelic_rpm-3.5.4

- old
+ new

@@ -15,7 +15,20 @@ def correctly_encoded(string) string end end + def instance_method_visibility(klass, method_name) + if klass.private_instance_methods.map{|s|s.to_sym}.include? method_name.to_sym + :private + elsif klass.protected_instance_methods.map{|s|s.to_sym}.include? method_name.to_sym + :protected + else + :public + end + end + + def time_to_millis(time) + (time.to_f * 1000).round + end end end