Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[onert] Apply inline variable to Exectime #14648

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/onert/core/src/exec/ExecTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ class ExecTime
* @brief Update metrics file with new data.
*/
void storeOperationsExecTime() const { _json.storeOperationsExecTime(); }
static const int64_t NOT_FOUND = -1;
static inline const int64_t NOT_FOUND = -1;

private:
/// @brief Measurement data, which is shared with serializer
MeasurementData _measurements;
// int64_t::max may cause integer overflow
static const int64_t _MAX = std::numeric_limits<int32_t>::max();
static inline const int64_t _MAX = std::numeric_limits<int32_t>::max();
/// @brief Serializer
JSON _json;
};
Expand Down