Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/ProfilingDebugging
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/ProfilingDebugging/ResourceSize.h |
| Include | #include "ProfilingDebugging/ResourceSize.h" |
Syntax
struct FResourceSizeEx
Remarks
Struct used to count up the amount of memory used by a resource. This is typically used for assets via UObject::GetResourceSizeEx(...).
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. | |||
FResourceSizeEx
(
const EResourceSizeMode::Type InResourceSizeMode |
Construct using a given mode. | ||
FResourceSizeEx
(
const EResourceSizeMode::Type InResourceSizeMode, |
Construct from legacy unknown size. Deliberately explicit to avoid accidental use. | ||
FResourceSizeEx
(
const EResourceSizeMode::Type InResourceSizeMode, |
Construct from known sizes. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FResourceSizeEx & | AddDedicatedSystemMemoryBytes
(
const FName& Tag, |
||
| FResourceSizeEx & | AddDedicatedSystemMemoryBytes
(
const SIZE_T InMemoryBytes |
Add the given number of bytes to the dedicated system memory count. | |
| FResourceSizeEx & | AddDedicatedVideoMemoryBytes
(
const FName& Tag, |
||
| FResourceSizeEx & | AddDedicatedVideoMemoryBytes
(
const SIZE_T InMemoryBytes |
Add the given number of bytes to the dedicated video memory count. | |
| FResourceSizeEx & | AddUnknownMemoryBytes
(
const FName& Tag, |
||
| FResourceSizeEx & | AddUnknownMemoryBytes
(
const SIZE_T InMemoryBytes |
Add the given number of bytes to the unknown memory count. | |
| SIZE_T | Get the number of bytes allocated from dedicated system memory. | ||
| SIZE_T | Get the number of bytes allocated from dedicated video memory. | ||
| EResourceSizeMode::Type | Get the type of resource size held in this struct. | ||
| SIZE_T | Get the total number of bytes allocated from any memory. | ||
| SIZE_T | Get the number of bytes allocated from unknown memory. | ||
| void | LogSummary
(
FOutputDevice& Ar |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FResourceSizeEx & | operator+=
(
const FResourceSizeEx& InRHS |
Add another FResourceSizeEx to this one. |