- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for simpleIndex (0.19 sec)
-
src/strings/strings_test.go
actual := LastIndexByte(test.s, test.sep[0]) if actual != test.out { t.Errorf("LastIndexByte(%q,%c) = %v; want %v", test.s, test.sep[0], actual, test.out) } } } func simpleIndex(s, sep string) int { n := len(sep) for i := n; i <= len(s); i++ { if s[i-n:i] == sep { return i - n } } return -1 } func TestIndexRandom(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/index.go
// profile sample types. func (p *Profile) SampleIndexByName(sampleIndex string) (int, error) { if sampleIndex == "" { if dst := p.DefaultSampleType; dst != "" { for i, t := range sampleTypes(p) { if t == dst { return i, nil } } } // By default select the last sample value return len(p.SampleType) - 1, nil } if i, err := strconv.Atoi(sampleIndex); err == nil { if i < 0 || i >= len(p.SampleType) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 19:18:53 UTC 2017 - 1.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/cli.go
} si := cfg.SampleIndex si = sampleIndex(flagTotalDelay, si, "delay", "-total_delay", o.UI) si = sampleIndex(flagMeanDelay, si, "delay", "-mean_delay", o.UI) si = sampleIndex(flagContentions, si, "contentions", "-contentions", o.UI) si = sampleIndex(flagInUseSpace, si, "inuse_space", "-inuse_space", o.UI) si = sampleIndex(flagInUseObjects, si, "inuse_objects", "-inuse_objects", o.UI)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 15 16:39:48 UTC 2023 - 12.1K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/config.go
func (cfg *config) resetTransient() { current := currentConfig() cfg.Output = current.Output cfg.SourcePath = current.SourcePath cfg.TrimPath = current.TrimPath cfg.DivideBy = current.DivideBy cfg.SampleIndex = current.SampleIndex } // applyURL updates *cfg based on params. func (cfg *config) applyURL(params url.Values) error { for _, f := range configFields { var value string if f.urlparam != "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 10.5K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/driver.go
// and the type/units of those values. func sampleFormat(p *profile.Profile, sampleIndex string, mean bool) (value, meanDiv sampleValueFunc, v *profile.ValueType, err error) { if len(p.SampleType) == 0 { return nil, nil, nil, fmt.Errorf("profile has no samples") } index, err := p.SampleIndexByName(sampleIndex) if err != nil { return nil, nil, nil, err } value = valueExtractor(index) if mean {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 10.8K bytes - Viewed (0) -
src/internal/trace/traceviewer/static/trace_viewer_full.html
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 20:45:06 UTC 2023 - 2.5M bytes - Viewed (0)