Added log_ping()

This commit is contained in:
Clifford Wolf 2014-07-21 12:01:45 +02:00
parent b49beab1f3
commit caae6e19df
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ void log_cell(RTLIL::Cell *cell, std::string indent = "");
#define log_abort() log_error("Abort in %s:%d.\n", __FILE__, __LINE__) #define log_abort() log_error("Abort in %s:%d.\n", __FILE__, __LINE__)
#define log_assert(_assert_expr_) do { if (_assert_expr_) break; log_error("Assert `%s' failed in %s:%d.\n", #_assert_expr_, __FILE__, __LINE__); } while (0) #define log_assert(_assert_expr_) do { if (_assert_expr_) break; log_error("Assert `%s' failed in %s:%d.\n", #_assert_expr_, __FILE__, __LINE__); } while (0)
#define log_ping() log("-- %s:%d %s --\n", __FILE__, __LINE__, __PRETTY_FUNCTION__)
// simple timer for performance measurements // simple timer for performance measurements
// toggle the '#if 1' to get a baseline for the perormance penalty added by the measurement // toggle the '#if 1' to get a baseline for the perormance penalty added by the measurement