1 // Copyright 2024 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build cmd_go_bootstrap || compiler_bootstrap 6 7 package counter 8 9 import "flag" 10 11 type dummyCounter struct{} 12 13 func (dc dummyCounter) Inc() {} 14 15 func Open() {} 16 func Inc(name string) {} 17 func New(name string) dummyCounter { return dummyCounter{} } 18 func NewStack(name string, depth int) dummyCounter { return dummyCounter{} } 19 func CountFlags(name string, flagSet flag.FlagSet) {} 20 func CountFlagValue(prefix string, flagSet flag.FlagSet, flagName string) {} 21