Lines Matching refs:code
38 * together with the first time the error code occurs and the last time the error code occurs.
40 * The type T represents the error code type and is an int32_t for the C API.
61 * \brief Adds new error code to the error log.
63 * Consecutive errors with the same code will be aggregated
66 * \param code error code of type T.
69 void log(const T &code, int64_t nowNs)
76 if (code == mEntries[mIdx].mCode
87 mEntries[mIdx].setFirstError(code, nowNs);
170 // Initialize entry with code as the first error at the given time.
171 void setFirstError(T code, int64_t time) {
172 mCode = code;
178 T mCode; // error code
179 uint32_t mCount; // number of consecutive errors of the same code.
180 int64_t mFirstTime; // first time of the error code.
181 int64_t mLastTime; // last time of the error code.
215 * \brief Adds new error code to the error log.
217 * Consecutive errors with the same code will be aggregated if
221 * \param code error code of type T.
224 void error_log_log(error_log_t *error_log, int32_t code, int64_t now_ns);