Class: MemprofilerPprof::Atfork::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_memprofiler_pprof/atfork.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block.



11
12
13
# File 'lib/ruby_memprofiler_pprof/atfork.rb', line 11

def block
  @block
end

#stageObject

Returns the value of attribute stage.



12
13
14
# File 'lib/ruby_memprofiler_pprof/atfork.rb', line 12

def stage
  @stage
end

Instance Method Details

#callObject



14
15
16
# File 'lib/ruby_memprofiler_pprof/atfork.rb', line 14

def call
  block.call
end

#remove!Object



18
19
20
# File 'lib/ruby_memprofiler_pprof/atfork.rb', line 18

def remove!
  Atfork.at_fork_handlers.reject! { |h| h === self }
end