...
1
2
3
4
5
6
7 package telemetrystats
8
9 import (
10 "fmt"
11
12 "cmd/internal/telemetry/counter"
13
14 "golang.org/x/sys/windows"
15 )
16
17 func incrementVersionCounters() {
18 v := windows.RtlGetVersion()
19 counter.Inc(fmt.Sprintf("go/platform/host/windows/major-version:%d", v.MajorVersion))
20 counter.Inc(fmt.Sprintf("go/platform/host/windows/version:%d-%d", v.MajorVersion, v.MinorVersion))
21 counter.Inc(fmt.Sprintf("go/platform/host/windows/build:%d", v.BuildNumber))
22 }
23
View as plain text