[Base] Fix MICROPROFILE_PRINTF.

This commit is contained in:
gibbed 2022-01-09 20:48:19 -06:00 committed by Rick Gibbed
parent f4d60f3fc4
commit 5384e0e174
1 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,8 @@
// XELOGI.
#include "xenia/base/logging.h"
#include "third_party/fmt/include/fmt/printf.h"
// NOTE: microprofile must be setup first, before profiling.h is included.
#define MICROPROFILE_ENABLED 1
#define MICROPROFILEUI_ENABLED 1
@ -21,7 +23,11 @@
#define MICROPROFILE_PER_THREAD_BUFFER_SIZE (1024 * 1024 * 10)
#define MICROPROFILE_USE_THREAD_NAME_CALLBACK 1
#define MICROPROFILE_WEBSERVER_MAXFRAMES 3
#define MICROPROFILE_PRINTF XELOGI
#define MICROPROFILE_PRINTF(...) \
do { \
auto xenia_profiler_formatted = fmt::sprintf(__VA_ARGS__); \
XELOGI("{}", xenia_profiler_formatted); \
} while (false);
#define MICROPROFILE_WEBSERVER 0
#define MICROPROFILE_DEBUG 0
#define MICROPROFILE_MAX_THREADS 128