Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isZeroSample (0.1 sec)

  1. src/internal/profile/merge.go

    			// otherwise the operations below will add mappings in an
    			// arbitrary order.
    			pm.mapMapping(src.Mapping[0])
    		}
    
    		for _, s := range src.Sample {
    			if !isZeroSample(s) {
    				pm.mapSample(s)
    			}
    		}
    	}
    
    	for _, s := range p.Sample {
    		if isZeroSample(s) {
    			// If there are any zero samples, re-merge the profile to GC
    			// them.
    			return Merge([]*Profile{p})
    		}
    	}
    
    	return p, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 17 19:35:56 UTC 2020
    - 11.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    			// otherwise the operations below will add mappings in an
    			// arbitrary order.
    			pm.mapMapping(src.Mapping[0])
    		}
    
    		for _, s := range src.Sample {
    			if !isZeroSample(s) {
    				pm.mapSample(s)
    			}
    		}
    	}
    
    	for _, s := range p.Sample {
    		if isZeroSample(s) {
    			// If there are any zero samples, re-merge the profile to GC
    			// them.
    			return Merge([]*Profile{p})
    		}
    	}
    
    	return p, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top