- Home /
How to measure total RAM used by the system?
Hi,
I'm working on a project where I need to measure realtime system information such as CPU usage, RAM usage, Read/Write usage etc.
I tested the PerformanceCounter from System.Diagnostics within a C# command line project in Visual Studio and it works wonderfully, but it doesn't work within Unity. CPU will always return 100 and RAM 0.
I figured out a hacky way to measure CPU by aggregating all active processes and sum up the processing time, although is not accurate nor ideal.
I can't figure out a way to measure RAM tho.
Is there a way to use the PerformanceCounter within Unity? As far as I looked, no one in the community managed to get this working.
Thank you!
Your answer
Follow this Question
Related Questions
Unity to android (game very laggy) 1 Answer
Transparent Shader performance, intermediate-advanced question? 0 Answers
Possible to access the "Rendering Statistics Window" ? 2 Answers
Low framerate when everything in hierarchy disabled / Statistics bug? 1 Answer
founding the bottlenecks of a game for mobile device 1 Answer