Add SCOPE_INFO_FMT for CheckCaches
This commit is contained in:
@@ -85,6 +85,7 @@
|
|||||||
#include "event_logs.h"
|
#include "event_logs.h"
|
||||||
#include "tunnelbridge.h"
|
#include "tunnelbridge.h"
|
||||||
#include "worker_thread.h"
|
#include "worker_thread.h"
|
||||||
|
#include "scope_info.h"
|
||||||
|
|
||||||
#include "linkgraph/linkgraphschedule.h"
|
#include "linkgraph/linkgraphschedule.h"
|
||||||
#include "tracerestrict.h"
|
#include "tracerestrict.h"
|
||||||
@@ -1472,6 +1473,8 @@ void CheckCaches(bool force_check, std::function<void(const char *)> log, CheckC
|
|||||||
if (desync_level == 1 && _scaled_date_ticks % 500 != 0) return;
|
if (desync_level == 1 && _scaled_date_ticks % 500 != 0) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SCOPE_INFO_FMT([flags], "CheckCaches: %X", flags);
|
||||||
|
|
||||||
std::vector<std::string> saved_messages;
|
std::vector<std::string> saved_messages;
|
||||||
std::function<void(const char *)> log_orig;
|
std::function<void(const char *)> log_orig;
|
||||||
if (flags & CHECK_CACHE_EMIT_LOG) {
|
if (flags & CHECK_CACHE_EMIT_LOG) {
|
||||||
|
Reference in New Issue
Block a user