From dcee847b92b3f51a762e48bd5f45be13520c9d61 Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Thu, 17 Apr 2025 23:07:15 +0200 Subject: [PATCH] Add measure 'instructions' --- ccUnitMeasure.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ccUnitMeasure.go b/ccUnitMeasure.go index dd1450a..6301898 100644 --- a/ccUnitMeasure.go +++ b/ccUnitMeasure.go @@ -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'