Appearance
MemoryFootprint Class
Definition
Represents the memory usage of the current process.
- Namespace:
JASE.Performance - Assembly:
JASE.dll
Constructors
| Name | Description |
|---|---|
MemoryFootprint() | Create an instance of MemoryFootprint |
Properties
| Name | Description |
|---|---|
PagedMemorySize64 | Gets or sets the size of the process's pageable memory, in kilobytes. |
PeakWorkingSet | Gets or sets the maximum size of the process's working set, in kilobytes. |
PrivateMemory | Gets or sets the size of the process's private memory, in kilobytes. |
VirtualMemory | Gets or sets the size of the process's virtual memory, in kilobytes. |
WorkingSet64 | Gets or sets the size of the process's working set, in kilobytes. |
Methods
| Name | Description |
|---|---|
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. |