Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FilterTagsByName (0.14 sec)

  1. src/cmd/vendor/github.com/google/pprof/profile/filter.go

    			if re.MatchString(fn.Name) || re.MatchString(fn.Filename) {
    				return i
    			}
    		}
    	}
    	return -1
    }
    
    // FilterTagsByName filters the tags in a profile and only keeps
    // tags that match show and not hide.
    func (p *Profile) FilterTagsByName(show, hide *regexp.Regexp) (sm, hm bool) {
    	matchRemove := func(name string) bool {
    		matchShow := show == nil || show.MatchString(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/internal/driver/driver_focus.go

    	warnNoMatches(tagignore == nil || tim, "TagIgnore", ui)
    
    	tagshow, err := compileRegexOption("tagshow", cfg.TagShow, err)
    	taghide, err := compileRegexOption("taghide", cfg.TagHide, err)
    	tns, tnh := prof.FilterTagsByName(tagshow, taghide)
    	warnNoMatches(tagshow == nil || tns, "TagShow", ui)
    	warnNoMatches(taghide == nil || tnh, "TagHide", ui)
    
    	if prunefrom != nil {
    		prof.PruneFrom(prunefrom)
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 22 23:33:06 UTC 2020
    - 6.4K bytes
    - Viewed (0)
Back to top