From caae6e19dffde4d76b30af3fd1f9751f4ec37fdc Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 21 Jul 2014 12:01:45 +0200 Subject: [PATCH] Added log_ping() --- kernel/log.h | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2