Files
UnrealEngineUWP/Engine/Source/Developer/Profiler/Public/IProfilerModule.h
Ben Marsh 7598af0532 Update copyright notices to 2019.
#rb none
#lockdown Nick.Penwarden

[CL 4662404 by Ben Marsh in Main branch]
2018-12-14 13:41:00 -05:00

39 lines
1.1 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "SlateFwd.h"
#include "Modules/ModuleInterface.h"
class FRawStatsMemoryProfiler;
class ISessionManager;
class SWidget;
/**
* Interface for the profiler module.
*/
class IProfilerModule
: public IModuleInterface
{
public:
/**
* Creates the main window for the profiler.
*
* @param InSessionManager The session manager to use.
* @param ConstructUnderMajorTab The tab which will contain the profiler tabs.
*
*/
virtual TSharedRef<SWidget> CreateProfilerWindow(const TSharedRef<ISessionManager>& InSessionManager, const TSharedRef<SDockTab>& ConstructUnderMajorTab) = 0;
/** Implements stats memory dump command. */
virtual void StatsMemoryDumpCommand(const TCHAR* Filename) = 0;
/**
* Creates a new instance of the memory profiler based the raw stats.
* When no longer needed must be stopped via RequestStop() and deleted to avoid memory leaks.
*/
virtual FRawStatsMemoryProfiler* OpenRawStatsForMemoryProfiling(const TCHAR* Filename) = 0;
};