From: Clifford Wolf Date: Mon, 21 Jul 2014 10:01:45 +0000 (+0200) Subject: Added log_ping() X-Git-Tag: yosys-0.4~508 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=caae6e19dffde4d76b30af3fd1f9751f4ec37fdc;p=yosys.git Added log_ping() --- diff --git a/kernel/log.h b/kernel/log.h index f6dcc0ac2..00265dbe0 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -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_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 // toggle the '#if 1' to get a baseline for the perormance penalty added by the measurement