40 using LogCallback = std::function<void(
const QString &message)>;
58 static bool isEnabled();
Cross-platform memory profiling utility.
static long getCurrentMemoryMB()
Get current actual memory usage in MB (current RSS).
static void checkpoint(const QString &label)
Log current memory usage with a label.
static long getPeakMemoryMB()
Get current peak memory usage in MB (maximum RSS since process start).
static void setLogCallback(LogCallback callback)
Set a callback for memory log messages (GUI hook).