2025-11-22 02:16:10 +01:00
|
|
|
|
using System.Runtime.Versioning;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ElectronNET.API.Entities
|
2017-10-14 00:06:58 +02:00
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Process memory info as returned by process.getProcessMemoryInfo().
|
|
|
|
|
|
/// Values are reported in Kilobytes.
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2017-10-14 00:06:58 +02:00
|
|
|
|
public class MemoryInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the amount of memory currently pinned to actual physical RAM.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
public int WorkingSetSize { get; set; }
|
2017-10-14 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the maximum amount of memory that has ever been pinned to actual physical RAM.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
public int PeakWorkingSetSize { get; set; }
|
2017-10-14 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Gets or sets the amount of memory not shared by other processes, such as JS heap or HTML content. Windows only.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
[SupportedOSPlatform("windows")]
|
2017-10-14 00:06:58 +02:00
|
|
|
|
public int PrivateBytes { get; set; }
|
|
|
|
|
|
}
|
2020-05-31 03:09:54 +02:00
|
|
|
|
}
|