Skip to content

Commit

Permalink
chore(core): make perf debugging logs disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Oct 14, 2024
1 parent 543c5b4 commit 6147b0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/footstone/include/footstone/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,9 @@ bool ShouldCreateLogMessage(LogSeverity severity);

#define HP_CSTR_NOT_NULL( p ) (p ? p : "")

#ifdef DEBUG
#ifdef ENABLE_HIPPY_PERFLOG
// enable perf log output when `ENABLE_HIPPY_PERFLOG` is set

// enable perf log output in debug mode only
#define TDF_PERF_LOG(format, ...) \
footstone::LogMessage::LogWithFormat(__FILE_NAME__, __LINE__, "[HP PERF] " format, \
##__VA_ARGS__)
Expand All @@ -241,4 +241,4 @@ footstone::LogMessage::LogWithFormat(__FILE_NAME__, __LINE__, "[HP PERF] " forma
#define TDF_PERF_LOG(format, ...)
#define TDF_PERF_DO_STMT_AND_LOG(STMT , format, ...)

#endif
#endif /* ENABLE_HIPPY_PERFLOG */

0 comments on commit 6147b0d

Please sign in to comment.