- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for newCounter (0.26 sec)
-
src/cmd/internal/telemetry/telemetry_bootstrap.go
func Start() {} func StartWithUpload() {} func Inc(name string) {} func NewCounter(name string) dummyCounter { return dummyCounter{} } func NewStackCounter(name string, depth int) dummyCounter { return dummyCounter{} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 20:16:39 UTC 2024 - 1.1K bytes - Viewed (0) -
src/cmd/internal/telemetry/telemetry.go
TelemetryDir: os.Getenv("TEST_TELEMETRY_DIR"), }) } // Inc increments the counter with the given name. func Inc(name string) { counter.Inc(name) } // NewCounter returns a counter with the given name. func NewCounter(name string) *counter.Counter { return counter.New(name) } // NewStackCounter returns a new stack counter with the given name and depth.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:47:30 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/go/internal/help/help.go
import ( "bufio" "fmt" "io" "os" "strings" "text/template" "unicode" "unicode/utf8" "cmd/go/internal/base" "cmd/internal/telemetry" ) var counterErrorsHelpUnknownTopic = telemetry.NewCounter("go/errors:help-unknown-topic") // Help implements the 'help' command. func Help(w io.Writer, args []string) { // 'go help documentation' generates doc.go. if len(args) == 1 && args[0] == "documentation" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 4.7K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/switch.go
fmt.Fprintf(os.Stderr, "go: %v requires go >= %v; switching to %v\n", s.TooNew.What, s.TooNew.GoVersion, tv) counterSwitchExec.Inc() Exec(tv) panic("unreachable") } var counterSwitchExec = telemetry.NewCounter("go/toolchain/switch-exec") // SwitchOrFatal attempts a toolchain switch based on the information in err // and otherwise falls back to base.Fatal(err). func SwitchOrFatal(ctx context.Context, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 7K bytes - Viewed (0) -
src/go/types/pointer.go
// license that can be found in the LICENSE file. package types // A Pointer represents a pointer type. type Pointer struct { base Type // element type } // NewPointer returns a new pointer type for the given element (base) type. func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} } // Elem returns the element type for the given pointer p. func (p *Pointer) Elem() Type { return p.base }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 761 bytes - Viewed (0) -
pkg/volume/noop_expandable_plugin.go
return true } func (n *noopExpandableVolumePluginInstance) RequiresRemount(spec *Spec) bool { return false } func (n *noopExpandableVolumePluginInstance) NewMounter(spec *Spec, podRef *v1.Pod, opts VolumeOptions) (Mounter, error) { return nil, nil } func (n *noopExpandableVolumePluginInstance) NewUnmounter(name string, podUID types.UID) (Unmounter, error) { return nil, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/volume/flexvolume/plugin.go
return []api.PersistentVolumeAccessMode{ api.ReadWriteOnce, api.ReadOnlyMany, } } // NewMounter is part of the volume.VolumePlugin interface. func (plugin *flexVolumePlugin) NewMounter(spec *volume.Spec, pod *api.Pod, _ volume.VolumeOptions) (volume.Mounter, error) { return plugin.newMounterInternal(spec, pod, plugin.host.GetMounter(plugin.GetPluginName()), plugin.runner)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 9.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/ui.go
for i, n := 0, mset.Len(); i < n; i++ { result = append(result, mset.At(i)) } } else { // T is some other concrete type. // Report methods of T and *T, preferring those of T. pmset := msets.MethodSet(types.NewPointer(T)) for i, n := 0, pmset.Len(); i < n; i++ { meth := pmset.At(i) if m := mset.Lookup(meth.Obj().Pkg(), meth.Obj().Name()); m != nil { meth = m } result = append(result, meth) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 1.7K bytes - Viewed (0) -
pkg/volume/plugins_test.go
func (plugin *testPlugins) SupportsMountOption() bool { return false } func (plugin *testPlugins) SupportsSELinuxContextMount(spec *Spec) (bool, error) { return false, nil } func (plugin *testPlugins) NewMounter(spec *Spec, podRef *v1.Pod, opts VolumeOptions) (Mounter, error) { return nil, nil } func (plugin *testPlugins) NewUnmounter(name string, podUID types.UID) (Unmounter, error) { return nil, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 4.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/methodsetcache.go
// instance whose underlying type is a named type. msets, ok := cache.named[named] if !ok { msets.value = types.NewMethodSet(named) msets.pointer = types.NewMethodSet(types.NewPointer(named)) cache.named[named] = msets } return msets
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 18:08:27 UTC 2024 - 2.1K bytes - Viewed (0)