Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for FilterSamplesByTag (0.24 sec)

  1. src/internal/profile/filter.go

    package profile
    
    // TagMatch selects tags for filtering
    type TagMatch func(key, val string, nval int64) bool
    
    // FilterSamplesByTag removes all samples from the profile, except
    // those that match focus and do not match the ignore regular
    // expression.
    func (p *Profile) FilterSamplesByTag(focus, ignore TagMatch) (fm, im bool) {
    	samples := make([]*Sample, 0, len(p.Sample))
    	for _, s := range p.Sample {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top