Add measure 'instructions'

This commit is contained in:
Thomas Gruber 2025-04-17 23:07:15 +02:00 committed by GitHub
parent b1f37c852b
commit dcee847b92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@ const (
Requests
Packets
Events
Instructions
)
type MeasureData struct {
@ -102,6 +103,11 @@ var MeasuresMap map[Measure]MeasureData = map[Measure]MeasureData{
Short: "events",
Regex: "^([eE][vV]?[eE]?[nN][tT][sS]?)",
},
Instructions: {
Long: "Instructions",
Short: "instr",
Regex: "^([iI][nN][sS][tT][rR][uU]?[cC]?[tT]?[iI]?[oO]?[nN]?[sS]?)",
},
}
// String returns the long string for the measure like 'Percent' or 'Seconds'