engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
IPerfCountersModule类 参考abstract

The public interface to this module 更多...

#include <PerfCountersModule.h>

+ 类 IPerfCountersModule 继承关系图:

Public 成员函数

virtual IPerfCounters * CreatePerformanceCounters (const FString &UniqueInstanceId=TEXT(""))=0
 Creates and initializes the performance counters object 更多...
 
virtual IPerfCounters * GetPerformanceCounters () const =0
 
- Public 成员函数 继承自 IModuleInterface
virtual bool IsGameModule () const
 Returns true if this module hosts gameplay code 更多...
 
virtual void PostLoadCallback ()
 Called after the module has been reloaded
 
virtual void PreUnloadCallback ()
 Called before the module has been unloaded
 
virtual void ShutdownModule ()
 Called before the module is unloaded, right before the module object is destroyed. 更多...
 
virtual void StartupModule ()
 Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多...
 
virtual bool SupportsAutomaticShutdown ()
 Override this to set whether your module would like cleanup on application shutdown 更多...
 
virtual bool SupportsDynamicReloading ()
 Override this to set whether your module is allowed to be unloaded on the fly 更多...
 
virtual ~IModuleInterface ()
 Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface

 

静态 Public 成员函数

static IPerfCountersModule & Get ()
 Singleton-like access to this module's interface. 更多...
 
static PERFCOUNTERS_API int32 GetHTTPStatsPort ()
 Returns the HTTP port to bind for the stats request. 更多...
 
static bool IsAvailable ()
 Checks to see if this module is loaded and ready. 更多...
 

详细描述

The public interface to this module

成员函数说明

◆ CreatePerformanceCounters()

virtual IPerfCounters * IPerfCountersModule::CreatePerformanceCounters ( const FString &  UniqueInstanceId = TEXT(""))
pure virtual

Creates and initializes the performance counters object

参数
UniqueInstanceIdoptional parameter that allows to assign a known name for this set of counters (a default one that will include process id will be provided if not given)
返回
IPerfCounters object (should be explicitly deleted later), or nullptr if failed

◆ Get()

static IPerfCountersModule & IPerfCountersModule::Get ( )
inlinestatic

Singleton-like access to this module's interface.

This is just for convenience! Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.

返回
Returns singleton instance, loading the module on demand if needed

◆ GetHTTPStatsPort()

static PERFCOUNTERS_API int32 IPerfCountersModule::GetHTTPStatsPort ( )
static

Returns the HTTP port to bind for the stats request.

Returns -1 if none were specified

◆ GetPerformanceCounters()

virtual IPerfCounters * IPerfCountersModule::GetPerformanceCounters ( ) const
pure virtual
返回
the currently initialized / in use perf counters

◆ IsAvailable()

static bool IPerfCountersModule::IsAvailable ( )
inlinestatic

Checks to see if this module is loaded and ready.

It is only valid to call Get() if IsAvailable() returns true.

返回
True if the module is loaded and ready to use

该类的文档由以下文件生成: