proxygen
|
#include <atomic>
#include <chrono>
#include <glog/logging.h>
Go to the source code of this file.
Macros | |
#define | FB_LOG_EVERY_MS(severity, milli_interval) |
#define FB_LOG_EVERY_MS | ( | severity, | |
milli_interval | |||
) |
Issues a LOG(severity) no more often than every milliseconds. Example:
FB_LOG_EVERY_MS(INFO, 10000) << "At least ten seconds passed" " since you last saw this.";
The implementation uses for statements to introduce variables in a nice way that doesn't mess surrounding statements. It is thread safe. Non-positive intervals will always log.
Definition at line 36 of file GLog.h.
Referenced by BENCHMARK(), folly::detail::MemoryIdler::flushLocalMallocCaches(), and TEST().