class Stackprofiler::RunCodeCache
Public Class Methods
new(profile)
click to toggle source
# File lib/stackprofiler/run_code_cache.rb, line 5 def initialize profile @profile = profile end
Public Instance Methods
source_helper(source_location, name=nil)
click to toggle source
# File lib/stackprofiler/run_code_cache.rb, line 9 def source_helper(source_location, name=nil) file, line = *source_location file_cache = @profile[:files] || [] if file_cache.include? file file_data = @profile[:files][file] self.class.expression_at(file_data, line) else MethodSource::source_helper(source_location, name) end end