Files
UnrealEngineUWP/Engine/Source/Developer/TraceServices/Private/Modules/TasksModule.h
ionut matasaru ac6e0a1609 [Insights]
- TraceServices: Added IModuleService::GetAvailableModulesEx(..), IModuleService::GetEnabledModules(..) and IModule::ShouldBeEnabledByDefault().
  - TraceServices: Fixed analysis to use only the enabled modules (to correctly use the state set by ShouldBeEnabledByDefault + SetModuleEnabled API).
  - SessionInfo: Added "!" in front of name for modules that are registered, but not enabled.
  - Changed FTraceServicesModule::StartupModule() to allow registration of all modules.
  - Changed the Memory, Tasks and LoadTimeProfiler modules to report that should be disabled by default in editor.
  - Fixed Insights unit tests (UE-116865). Re-enabled the LoadTimeProfiler module for unit tests even if it is disabled by default for editor.

#jira UE-116865
#rb Catalin.Dragoiu

[CL 16587640 by ionut matasaru in ue5-main branch]
2021-06-08 11:19:34 -04:00

33 lines
781 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "TraceServices/ModuleService.h"
#include "UObject/NameTypes.h"
namespace TraceServices
{
class FTasksModule : public IModule
{
public:
virtual void GetModuleInfo(FModuleInfo& OutModuleInfo) override;
virtual void OnAnalysisBegin(IAnalysisSession& Session) override;
virtual void GetLoggers(TArray<const TCHAR*>& OutLoggers) override
{
}
virtual const TCHAR* GetCommandLineArgument() override
{
return nullptr;
}
virtual void GenerateReports(const IAnalysisSession& Session, const TCHAR* CmdLine, const TCHAR* OutputDirectory) override
{
}
#if WITH_EDITOR
virtual bool ShouldBeEnabledByDefault() const override
{
return false;
}
#endif
};
} // namespace TraceServices