pub fn GetTransactionStatistics(
statistic: TransactionStatistic,
) -> Result<u64, SysErr>Expand description
Returns a transaction statistic value. Note that statistics may be disabled in release builds or production execution, and may return nondeterministic values in test configurations. Nondeterministic stats will be disabled in production settings.
§Arguments
statistic
§Outputs
result
This is a convenience wrapper around uninit_GetTransactionStatistics that returns the result as SyscallResult<T>.
§Errors
- kSyscallErrorCodeInvalidSyscallInput: The requested statistic does not exist or is not available in this configuration.