mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-01 22:04:55 +00:00
116 lines
1.8 KiB
C#
116 lines
1.8 KiB
C#
#if !SIMPLSHARP
|
|
using System;
|
|
using ICD.Common.Properties;
|
|
|
|
namespace ICD.Common.Utils
|
|
{
|
|
public static partial class ProcessorUtils
|
|
{
|
|
#region Properties
|
|
|
|
/// <summary>
|
|
/// Gets the model name of the processor.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public static string ModelName { get { return Environment.MachineName; } }
|
|
|
|
/// <summary>
|
|
/// Gets the processor firmware version.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public static Version ModelVersion
|
|
{
|
|
get
|
|
{
|
|
// TODO
|
|
return new Version("1.0.0.0");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the ram usage in the range 0 - 1.
|
|
/// </summary>
|
|
public static float RamUsagePercent
|
|
{
|
|
get
|
|
{
|
|
// TODO
|
|
return 0.0f;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the total number of bytes of physical memory.
|
|
/// </summary>
|
|
public static ulong RamTotalBytes
|
|
{
|
|
get
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the total number of bytes of physical memory being used by the control system.
|
|
/// </summary>
|
|
public static ulong RamUsedBytes
|
|
{
|
|
get
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the total number of bytes of physical memory not being used by the control system.
|
|
/// </summary>
|
|
public static ulong RamBytesFree
|
|
{
|
|
get
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the total number of bytes that can be reclaimed.
|
|
/// </summary>
|
|
public static ulong RamBytesReclaimable
|
|
{
|
|
get
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
/// <summary>
|
|
/// Restarts this program.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public static void RestartProgram()
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Reboots the processor.
|
|
/// </summary>
|
|
[PublicAPI]
|
|
public static void Reboot()
|
|
{
|
|
throw new NotSupportedException();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
#endif
|