Module |
|
Header |
/Engine/Source/Runtime/Core/Public/ProfilingDebugging/InstanceCounter.h |
Include |
#include "ProfilingDebugging/InstanceCounter.h" |
class FInstanceCountingObject
A helper object for counting instances of struct or classes for debugging purposes, e.g. to get an absolute count of the number of "Foo"'s in existence
Suggested use
Name | Description | |
---|---|---|
|
FInstanceCountingObject ( |
Copy-constructor for assigment |
|
FInstanceCountingObject |
Constructor, though geneerally these objects should be created using the COUNT_INSTANCES_ macro. |
Name | Description | |
---|---|---|
|
~FInstanceCountingObject() |
Destructor |
Name | Description | ||
---|---|---|---|
|
DecrementStats() |
Decrements stats for objects of this type |
|
|
FGlobalVars ... |
GetGlobals() |
|
|
GetInstanceCount ( |
Returns the count of instances with "Name". |
|
|
IncrementStats() |
Increments stats for objects of this type |
|
|
LogCounts ( |
Dumps stats for all counted instances to the provided output device. |
Name |
Description |
|
---|---|---|
|
FGlobalVars |
Vars used by our singleton |
Name |
Description |
---|---|
Globals |
Vars are stored as a pointer and initialized on demand due to avoid dependencies on global crot order |