var openedMu … var opened … const SupportedPlatform … func isOpen() bool { … } // Open 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) { … } // ReadStackCounter reads the given StackCounter. func ReadStackCounter(c *counter.StackCounter) (stackCounts map[string]uint64, _ error) { … } // ReadFile reads the counters and stack counters from the given file. func ReadFile(name string) (counters, stackCounters map[string]uint64, _ error) { … }