Files
UnrealEngineUWP/Engine/Source/Runtime/Core/Private/Unix
michael sartain 3957eeb144 Read proc smaps_rollup in FUnixPlatformMemory::GetExtendedStats() if it exists
smaps_rollup was added in v4.14. Details on this page:
  https://kernelnewbies.org/Linux_4.14

It should be a constant ~1ms vs 6.8ms (and far higher) when reading entire smaps file
  (Tested on my 5.15 kernel)

smaps_rollup info:
  https://patchwork.kernel.org/project/linux-fsdevel/patch/20170812022148.178293-1-dancol[at]google.com/

Smaps info:
> FPlatformMemory::GetExtendedStats() is slow and took 28ms in my local tests.
> Moreover, it can be even slower because the time it takes is a (hopefully
> linear) function of the number of memory allocations.

#jira UE-139749, UE-52126
[REVIEW] Brandon.Schaefer, Arciel.Rekman
[FYI] Brian.Bekich, Ilya.Loshchinin, Robert.Seiver
#preflight trivial

#ROBOMERGE-AUTHOR: michael.sartain
#ROBOMERGE-SOURCE: CL 18683396 via CL 18683443 via CL 18683460 via CL 18684028 via CL 18684035 via CL 18684055
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v902-18672795)

[CL 18684069 by michael sartain in ue5-main branch]
2022-01-20 18:41:56 -05:00
..