Skip to content

MemoryFootprint Class ​

Definition ​

Represents the memory usage of the current process.

  • Namespace: JASE.Performance
  • Assembly: JASE.dll

Constructors ​

NameDescription
MemoryFootprint()Create an instance of MemoryFootprint

Properties ​

NameDescription
PagedMemorySize64Gets or sets the size of the process's pageable memory, in kilobytes.
PeakWorkingSetGets or sets the maximum size of the process's working set, in kilobytes.
PrivateMemoryGets or sets the size of the process's private memory, in kilobytes.
VirtualMemoryGets or sets the size of the process's virtual memory, in kilobytes.
WorkingSet64Gets or sets the size of the process's working set, in kilobytes.

Methods ​

NameDescription
long GetAllocatedBytes(bool forceGc = null)Returns the current allocated bytes for the current thread
void Log(string logname, string message = null, string callingMethod = null)Writes log messages to a log file with information about the memory footprint of the program.
long MeasureAllocations(Action action, int iterations = null, bool forceGc = null)Measures the average number of bytes allocated by the specified action.