Sha256: 748b2dbbcd46852b5e3228dd53fa70867a9111acf261b55fdd18236cf110f96f
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
module Stackprofiler module Filter class FrameRegexRemoval include RemoveFramesHelper def initialize(options={}) @options = options end def regexes ary = @options[:regexes] || [] @regexes ||= ary.reject(&:blank?).map {|r| /#{r}/ }.compact end def filter root, run remove_frames root, run do |node, frame| regexes.any? {|r| frame[:name] =~ r } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stackprofiler-0.0.4 | lib/stackprofiler/filters/frame_regex_removal.rb |
stackprofiler-0.0.3 | lib/stackprofiler/filters/frame_regex_removal.rb |