module Memory::Profiler

Constants

PROFILE_CALL_PROC
PROFILE_RETURN_PROC
VERSION

Public Instance Methods

end_profiling() click to toggle source
# File lib/memory/profiler.rb, line 51
def end_profiling
  PROFILE_CALL_PROC.disable
  PROFILE_RETURN_PROC.disable
end
print_profiling() click to toggle source
start_profiling() click to toggle source
# File lib/memory/profiler.rb, line 44
def start_profiling
  @@stack = []
  @@record = {}
  PROFILE_CALL_PROC.enable
  PROFILE_RETURN_PROC.enable
end