Files
FlaxEngine/Source/Engine/Profiler/ProfilerMemory.h
2021-01-02 14:28:49 +01:00

25 lines
582 B
C++

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