\value CPUTicks CPU time
\value InstructionReads Instruction reads
\value Events Event count
+ \value WalltimeNanoseconds Clock time in nanoseconds
+ \value BytesAllocated Memory usage in bytes
+
+ Note that \c WalltimeNanoseconds and \c BytesAllocated are
+ only provided for use via \l setBenchmarkResult(), and results
+ in those metrics are not able to be provided automatically
+ by the QTest framework.
\sa QTest::benchmarkMetricName(), QTest::benchmarkMetricUnit()
return "InstructionReads";
case Events:
return "Events";
+ case WalltimeNanoseconds:
+ return "WalltimeNanoseconds";
+ case BytesAllocated:
+ return "BytesAllocated";
default:
return "";
}
return "instruction reads";
case Events:
return "events";
+ case WalltimeNanoseconds:
+ return "nsecs";
+ case BytesAllocated:
+ return "bytes";
default:
return "";
}