EM_Task/TraceInsights/Private/Insights/MemoryProfiler/ViewModels/MemoryTracker.h

39 lines
862 B
C
Raw Permalink Normal View History

2026-02-13 16:18:33 +08:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
namespace Insights
{
typedef int32 FMemoryTrackerId;
class FMemoryTag;
////////////////////////////////////////////////////////////////////////////////////////////////////
class FMemoryTracker
{
friend class FMemorySharedState;
public:
static const FMemoryTrackerId InvalidTrackerId = -1;
public:
FMemoryTracker(FMemoryTrackerId InTrackerId, const FString InTrackerName);
~FMemoryTracker();
FMemoryTrackerId GetId() const { return Id; }
const FString& GetName() const { return Name; }
void Update();
private:
FMemoryTrackerId Id; // the tracker's id
FString Name; // the tracker's name
};
////////////////////////////////////////////////////////////////////////////////////////////////////
} // namespace Insights