Files
UnrealEngineUWP/Engine/Source/Programs/UnrealFrontend/Private/Commands/StatsDumpMemoryCommand.cpp
Chris Gagnon 8fc25ea18e Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4676797 by Chris Gagnon in Dev-Editor branch]
2019-01-02 14:54:39 -05:00

17 lines
548 B
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "StatsDumpMemoryCommand.h"
#include "IProfilerModule.h"
#include "Misc/CommandLine.h"
#include "Modules/ModuleManager.h"
void FStatsMemoryDumpCommand::Run()
{
FString SourceFilepath;
FParse::Value(FCommandLine::Get(), TEXT("-INFILE="), SourceFilepath);
const FName NAME_ProfilerModule = TEXT("Profiler");
IProfilerModule& ProfilerModule = FModuleManager::LoadModuleChecked<IProfilerModule>(NAME_ProfilerModule);
ProfilerModule.StatsMemoryDumpCommand(*SourceFilepath);
}