Class: Insight::Instrumentation::ProbeDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/insight/instrumentation/probe-definition.rb

Instance Method Summary (collapse)

Constructor Details

- (ProbeDefinition) initialize(package, target_name)

A new instance of ProbeDefinition



3
4
5
6
# File 'lib/insight/instrumentation/probe-definition.rb', line 3

def initialize(package, target_name)
  @package = package
  @target_name = target_name
end

Instance Method Details

- (Object) class_probe(*method_names)



14
15
16
17
18
# File 'lib/insight/instrumentation/probe-definition.rb', line 14

def class_probe(*method_names)
  if probes = @package.get_class_probe(@target_name)
    probes.probe(@package.collector, *method_names)
  end
end

- (Object) instance_probe(*method_names)



8
9
10
11
12
# File 'lib/insight/instrumentation/probe-definition.rb', line 8

def instance_probe(*method_names)
  if probes = @package.get_instance_probe(@target_name)
    probes.probe(@package.collector, *method_names)
  end
end