aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/telemetry/telemetry_bootstrap.go
blob: 1740bdb7019d1190b115b46ab2f467fc88b74677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build cmd_go_bootstrap || compiler_bootstrap

package telemetry

import "flag"

type dummyCounter struct{}

func (dc dummyCounter) Inc() {}

func Start()                                                              {}
func StartWithUpload()                                                    {}
func Inc(name string)                                                     {}
func NewCounter(name string) dummyCounter                                 { return dummyCounter{} }
func NewStackCounter(name string, depth int) dummyCounter                 { return dummyCounter{} }
func CountFlags(name string, flagSet flag.FlagSet)                        {}
func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {}
func Mode() string                                                        { return "" }
func SetMode(mode string) error                                           { return nil }
func Dir() string                                                         { return "" }