Imports #
"sync"
"golang.org/x/telemetry/counter"
ic "golang.org/x/telemetry/internal/counter"
"golang.org/x/telemetry/internal/telemetry"
"testing"
"sync"
"golang.org/x/telemetry/counter"
ic "golang.org/x/telemetry/internal/counter"
"golang.org/x/telemetry/internal/telemetry"
"testing"
SupportedPlatform reports if this platform supports Open()
const SupportedPlatform = *ast.UnaryExprvar opened boolvar openedMu sync.MutexOpen enables telemetry data writing to disk. This is supposed to be called once during the program execution (i.e. typically in TestMain), and must not be used with golang.org/x/telemetry/counter.Open.
func Open(telemetryDir string)ReadCounter reads the given counter.
func ReadCounter(c *counter.Counter) (count uint64, _ error)ReadFile reads the counters and stack counters from the given file.
func ReadFile(name string) (counters map[string]uint64, stackCounters map[string]uint64, _ error)ReadStackCounter reads the given StackCounter.
func ReadStackCounter(c *counter.StackCounter) (stackCounts map[string]uint64, _ error)func init()func isOpen() boolGenerated with Arrow