CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::UnitTestMetric Struct Reference

One recorded performance metric of a test run. More...

#include <UnitTestFramework.h>

Collaboration diagram for cmlabs::UnitTestMetric:
[legend]

Public Attributes

std::string name
 Metric name (unique within the test).
double value
 Measured value.
std::string unit
 Unit label (e.g.
bool higherIsBetter
 Delta-direction hint for compare mode.

Detailed Description

One recorded performance metric of a test run.

Definition at line 139 of file UnitTestFramework.h.

Member Data Documentation

◆ higherIsBetter

bool cmlabs::UnitTestMetric::higherIsBetter

Delta-direction hint for compare mode.

Definition at line 143 of file UnitTestFramework.h.

Referenced by cmlabs::UnitTestRunner::hookMetric(), cmlabs::ut_readChildResult(), and cmlabs::ut_writeChildResult().

◆ name

std::string cmlabs::UnitTestMetric::name

Metric name (unique within the test).

Definition at line 140 of file UnitTestFramework.h.

Referenced by cmlabs::UnitTestRunner::hookMetric(), cmlabs::ut_readChildResult(), and cmlabs::ut_writeChildResult().

◆ unit

std::string cmlabs::UnitTestMetric::unit

Unit label (e.g.

"msg/s", "us")

Definition at line 142 of file UnitTestFramework.h.

Referenced by cmlabs::UnitTestRunner::hookMetric(), cmlabs::ut_readChildResult(), and cmlabs::ut_writeChildResult().

◆ value

double cmlabs::UnitTestMetric::value

The documentation for this struct was generated from the following file: