MCPcopy Create free account
hub / github.com/google/gapid / GetCommandLabel

Method GetCommandLabel

gapis/api/gles/graph_visualization.go:32–39  ·  view source on GitHub ↗
(command api.Cmd, cmdId uint64)

Source from the content-addressed store, hash-verified

30type labelForGlesCommands struct{}
31
32func (*labelForGlesCommands) GetCommandLabel(command api.Cmd, cmdId uint64) *api.Label {
33 label := &api.Label{}
34 commandName := command.CmdName()
35 var commandIndexName bytes.Buffer
36 fmt.Fprintf(&commandIndexName, "%s_%d", commandName, cmdId)
37 label.PushBack(commandIndexName.String(), int(cmdId))
38 return label
39}
40
41func (*labelForGlesCommands) GetSubCommandLabel(index api.SubCmdIdx, commandName string, cmdId uint64, subCommandName string) *api.Label {
42 // TODO(hevrard): understand and implement

Callers

nothing calls this directly

Calls 3

PushBackMethod · 0.95
CmdNameMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected