Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
import os
import sys
import shutil
+import metrics_table
# default: 'type': uint64
# ptype: "'counter' (vs gauge')
ret = ret.replace('Nsec', 'NSEC')
return ret
-# read table
-with open(srcdir + '/metrics_table.py', mode='r', encoding="utf-8") as file:
- table = eval(file.read())
+table = metrics_table.table
#
# We create various files in the srcdir but copy them into the builddir if needed to satisfy meson
# }
#
-[
+table = [
{
'name': 'questions',
'lambda': '[] { return g_Counters.sum(rec::Counter::qcounter); }',