Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WorkingSet

unsafe long System.Environment.WorkingSet
staticget

Definition at line 385 of file Environment.cs.

386 {
387 get
388 {
390 ppsmemCounters.cb = (uint)sizeof(Interop.Kernel32.PROCESS_MEMORY_COUNTERS);
391 if (!Interop.Kernel32.GetProcessMemoryInfo(Interop.Kernel32.GetCurrentProcess(), ref ppsmemCounters, ppsmemCounters.cb))
392 {
393 return 0L;
394 }
395 return (long)(ulong)ppsmemCounters.WorkingSetSize;
396 }
397 }
static bool GetProcessMemoryInfo(IntPtr Process, ref PROCESS_MEMORY_COUNTERS ppsmemCounters, uint cb)
static IntPtr GetCurrentProcess()

Referenced by System.Diagnostics.Tracing.RuntimeEventSource.OnEventCommand().