FName::DisplayHash
#include "UObject/NameTypes.h"
Access: public
Specifiers: static
Description
Dumps name-table hash bucket statistics to an output device. Useful for diagnosing hash collision rates or verifying that Reserve() pre-allocation was sized appropriately.
Caveats & Gotchas
- • This is a diagnostic utility only — it has no side effects on the name table and should never be left in production code due to the volume of output it generates.
- • The output format is undocumented and implementation-defined; it has changed across engine versions and should not be parsed programmatically.
Signature
CORE_API static void DisplayHash( class FOutputDevice& Ar ); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Ar | class FOutputDevice& | Output device to write the hash bucket statistics to. | — |
Return Type
void Example
Dump hash stats to the log C++
FOutputDeviceDebug DebugOutput;
FName::DisplayHash(DebugOutput);
// Or route to GLog:
FName::DisplayHash(*GLog); See Also
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?