// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Core/Types/BaseTypes.h"
#if COMPILE_WITH_PROFILER
///
/// Provides memory allocations measuring methods.
///
class FLAXENGINE_API ProfilerMemory
{
public:
///
/// Called on memory allocation.
///
/// The allocated bytes count.
/// True if allocation comes from the Garbage Collector, otherwise false.
static void OnAllocation(int32 bytes, bool isGC);
};
#endif