forked from ElectronNET/Electron.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMemoryInfo.cs
More file actions
28 lines (25 loc) · 969 Bytes
/
Copy pathMemoryInfo.cs
File metadata and controls
28 lines (25 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.Runtime.Versioning;
namespace ElectronNET.API.Entities
{
/// <summary>
/// Process memory info as returned by process.getProcessMemoryInfo().
/// Values are reported in Kilobytes.
/// </summary>
/// <remarks>Up-to-date with Electron API 39.2</remarks>
public class MemoryInfo
{
/// <summary>
/// Gets or sets the amount of memory currently pinned to actual physical RAM.
/// </summary>
public int WorkingSetSize { get; set; }
/// <summary>
/// Gets or sets the maximum amount of memory that has ever been pinned to actual physical RAM.
/// </summary>
public int PeakWorkingSetSize { get; set; }
/// <summary>
/// Gets or sets the amount of memory not shared by other processes, such as JS heap or HTML content. Windows only.
/// </summary>
[SupportedOSPlatform("windows")]
public int PrivateBytes { get; set; }
}
}