Debian Codegraph @

gopls/internal/golang/counters.go

raw symbols SCIP
1 // Copyright 2025 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 package golang
6
7 import "golang.org/x/telemetry/counter"
8
9 // Proposed counters for evaluating gopls extract, inline, and package rename. These counters
10 // increment when the user attempts to perform one of these operations,
11 // regardless of whether it succeeds.
12 var (
13 countExtractFunction = counter.New("gopls/extract:func")
14 countExtractMethod = counter.New("gopls/extract:method")
15 countExtractVariable = counter.New("gopls/extract:variable")
16 countExtractVariableAll = counter.New("gopls/extract:variable-all")
17
18 countInlineCall = counter.New("gopls/inline:call")
19 countInlineVariable = counter.New("gopls/inline:variable")
20
21 countRenamePackage = counter.New("gopls/renamekind:package")
22 )