Module bench

Module bench 

Source

Functions§

run_with_metric_collection
Run a function with metric collection enabled. The metrics will be written to a file specified by an environment variable which name is output_path_envar.
serialize_metric_snapshot
Serialize a metric snapshot into a JSON object. The object has the following structure: { “gauge”: [ { “metric”: , “labels”: [ (, ), (, ), ], “value”: }, … ], … }