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

Method GetLabelAsAString

gapis/api/graph_visualization.go:109–119  ·  view source on GitHub ↗

GetLabelAsAString returns the Label as a string concatenating names and ID for each level delimited by '/'.

()

Source from the content-addressed store, hash-verified

107// GetLabelAsAString returns the Label as a string concatenating
108// names and ID for each level delimited by '/'.
109func (label *Label) GetLabelAsAString() string {
110 var output bytes.Buffer
111 for i := range label.LevelsID {
112 output.WriteString(label.LevelsName[i])
113 fmt.Fprintf(&output, "%d", label.LevelsID[i])
114 if i+1 < len(label.LevelsID) {
115 output.WriteString("/")
116 }
117 }
118 return output.String()
119}
120
121// Hierarchy describes the levels ID of hierarchy for vulkan
122// commands and vulkan subcommands.

Callers 3

GetSubCommandLabelMethod · 0.95
getGraphInPbtxtFormatMethod · 0.80
TestLabelFunction · 0.80

Calls 2

WriteStringMethod · 0.80
StringMethod · 0.65

Tested by 1

TestLabelFunction · 0.64