FLImaging
7.8.25.3
Toggle main menu visibility
FLImagingBase
FLImagingBase
SystemInformation.h
1
#pragma once
2
10
11
#include "FLBase.h"
12
14
namespace
FLImaging
15
{
17
namespace
Base
18
{
26
class
FL_EXPORT
CSystemInformation
:
public
CFLBase
27
{
28
public
:
29
38
enum
EMemoryType
39
{
41
EMemoryType_Unknown
= -1,
42
44
EMemoryType_DDR
,
45
47
EMemoryType_DDR2
,
48
50
EMemoryType_DDR2_FB_DIMM
,
51
53
EMemoryType_DDR3
,
54
56
EMemoryType_DDR4
,
57
59
EMemoryType_DDR5
,
60
62
EMemoryType_DDR6_Or_Higher
,
63
};
64
65
protected
:
73
CSystemInformation
();
74
75
public
:
87
static
ECPUInstructionType
GetCPUInstruction
();
88
89
99
static
uint64_t
GetTotalPhysicalMemory
();
100
110
static
uint64_t
GetAvailablePhysicalMemory
();
111
121
static
uint64_t
GetTotalVirtualMemory
();
122
132
static
uint64_t
GetAvailableVirtualMemory
();
133
134
144
static
double
GetProcessorUsage
();
145
146
156
static
int32_t
GetProcessorPackageCount
();
157
167
static
int32_t
GetNumaNodeCount
();
168
178
static
int32_t
GetPhysicalProcessorCoreCount
();
179
189
static
int32_t
GetLogicalProcessorCoreCount
();
190
200
static
int32_t
GetProcessorL1CacheCount
();
201
211
static
int32_t
GetProcessorL2CacheCount
();
212
222
static
int32_t
GetProcessorL3CacheCount
();
223
224
234
static
int32_t
GetProcessorL1CacheSize
();
235
245
static
int32_t
GetProcessorL2CacheSize
();
246
256
static
int32_t
GetProcessorL3CacheSize
();
257
258
268
static
int32_t
GetProcessorL1LineSize
();
269
279
static
int32_t
GetProcessorL2LineSize
();
280
290
static
int32_t
GetProcessorL3LineSize
();
291
292
302
static
const
wchar_t
*
GetProcessorName
();
303
313
static
int32_t
GetMemoryChannelCount
();
314
324
static
int32_t
GetMemoryClockSpeed
();
325
335
static
EMemoryType
GetMemoryType
();
336
337
347
static
int32_t
GetProcessorClockSpeed
();
348
358
static
int32_t
GetDMAChannelCount
();
359
369
static
bool
IsX64OperatingSystem
();
370
380
static
EOperatingSystemType
GetOperatingSystemType
();
381
391
static
uint64_t
GetAllocatablePhysicalMemory
();
392
393
394
DeclareGetClassType();
395
};
396
}
397
}
398
FLImaging::Base::CFLBase::CFLBase
CFLBase()
Default constructor.
FLImaging::Base::CSystemInformation::GetProcessorL3LineSize
static int32_t GetProcessorL3LineSize()
Get processor L3 line size.
FLImaging::Base::CSystemInformation::GetDMAChannelCount
static int32_t GetDMAChannelCount()
Get DMA channel count.
FLImaging::Base::CSystemInformation::GetProcessorUsage
static double GetProcessorUsage()
Get processor usage in percent.
FLImaging::Base::CSystemInformation::GetProcessorName
static const wchar_t * GetProcessorName()
Get processor name.
FLImaging::Base::CSystemInformation::GetProcessorL1CacheSize
static int32_t GetProcessorL1CacheSize()
Get processor L1 cache size.
FLImaging::Base::CSystemInformation::GetCPUInstruction
static ECPUInstructionType GetCPUInstruction()
Get the CPU instruction type.
FLImaging::Base::CSystemInformation::GetLogicalProcessorCoreCount
static int32_t GetLogicalProcessorCoreCount()
Get number of logical processor cores.
FLImaging::Base::CSystemInformation::GetTotalPhysicalMemory
static uint64_t GetTotalPhysicalMemory()
Get total amount of physical memory.
FLImaging::Base::CSystemInformation::IsX64OperatingSystem
static bool IsX64OperatingSystem()
Check if the program is running on an x64 operating system.
FLImaging::Base::CSystemInformation::GetMemoryClockSpeed
static int32_t GetMemoryClockSpeed()
Get memory clock (MHz).
FLImaging::Base::CSystemInformation::GetAllocatablePhysicalMemory
static uint64_t GetAllocatablePhysicalMemory()
Returns the actual allocatable memory size in bytes. Depending on the degree of memory fragmentation,...
FLImaging::Base::CSystemInformation::GetOperatingSystemType
static EOperatingSystemType GetOperatingSystemType()
Gets the operating system type.
FLImaging::Base::CSystemInformation::GetProcessorL1CacheCount
static int32_t GetProcessorL1CacheCount()
Get processor L1 cache count.
FLImaging::Base::CSystemInformation::GetProcessorClockSpeed
static int32_t GetProcessorClockSpeed()
Get processor clock (MHz).
FLImaging::Base::CSystemInformation::GetAvailableVirtualMemory
static uint64_t GetAvailableVirtualMemory()
Get a valid amount of virtual memory.
FLImaging::Base::CSystemInformation::EMemoryType
EMemoryType
Memory Type.
Definition
SystemInformation.h:39
FLImaging::Base::CSystemInformation::EMemoryType_DDR2_FB_DIMM
@ EMemoryType_DDR2_FB_DIMM
Definition
SystemInformation.h:50
FLImaging::Base::CSystemInformation::EMemoryType_Unknown
@ EMemoryType_Unknown
Definition
SystemInformation.h:41
FLImaging::Base::CSystemInformation::EMemoryType_DDR2
@ EMemoryType_DDR2
Definition
SystemInformation.h:47
FLImaging::Base::CSystemInformation::EMemoryType_DDR
@ EMemoryType_DDR
Definition
SystemInformation.h:44
FLImaging::Base::CSystemInformation::EMemoryType_DDR3
@ EMemoryType_DDR3
Definition
SystemInformation.h:53
FLImaging::Base::CSystemInformation::EMemoryType_DDR6_Or_Higher
@ EMemoryType_DDR6_Or_Higher
Definition
SystemInformation.h:62
FLImaging::Base::CSystemInformation::EMemoryType_DDR5
@ EMemoryType_DDR5
Definition
SystemInformation.h:59
FLImaging::Base::CSystemInformation::EMemoryType_DDR4
@ EMemoryType_DDR4
Definition
SystemInformation.h:56
FLImaging::Base::CSystemInformation::GetMemoryChannelCount
static int32_t GetMemoryChannelCount()
Get memory channel.
FLImaging::Base::CSystemInformation::GetProcessorL1LineSize
static int32_t GetProcessorL1LineSize()
Get processor L1 line size.
FLImaging::Base::CSystemInformation::GetPhysicalProcessorCoreCount
static int32_t GetPhysicalProcessorCoreCount()
Get number of physical processor cores.
FLImaging::Base::CSystemInformation::GetNumaNodeCount
static int32_t GetNumaNodeCount()
Get the number of Numa Nodes.
FLImaging::Base::CSystemInformation::GetProcessorL3CacheSize
static int32_t GetProcessorL3CacheSize()
Get processor L3 cache size.
FLImaging::Base::CSystemInformation::GetTotalVirtualMemory
static uint64_t GetTotalVirtualMemory()
Get the total amount of virtual memory.
FLImaging::Base::CSystemInformation::GetProcessorL2CacheCount
static int32_t GetProcessorL2CacheCount()
Get processor L2 cache count.
FLImaging::Base::CSystemInformation::GetProcessorPackageCount
static int32_t GetProcessorPackageCount()
Get processor package count.
FLImaging::Base::CSystemInformation::GetProcessorL2CacheSize
static int32_t GetProcessorL2CacheSize()
Get processor L2 cache size.
FLImaging::Base::CSystemInformation::GetProcessorL2LineSize
static int32_t GetProcessorL2LineSize()
Get processor L2 line size.
FLImaging::Base::CSystemInformation::GetProcessorL3CacheCount
static int32_t GetProcessorL3CacheCount()
Get processor L3 cache count.
FLImaging::Base::CSystemInformation::GetAvailablePhysicalMemory
static uint64_t GetAvailablePhysicalMemory()
Get valid amount of physical memory.
FLImaging::Base::CSystemInformation::CSystemInformation
CSystemInformation()
Constructor.
FLImaging::Base::CSystemInformation::GetMemoryType
static EMemoryType GetMemoryType()
Get memory type.
FLImaging::Base
Definition
AESCryptography.h:18
FLImaging::Base::EOperatingSystemType
EOperatingSystemType
Operating system type.
Definition
DefinitionsBase.h:2841
FLImaging::Base::ECPUInstructionType
ECPUInstructionType
CPU instruction type.
Definition
DefinitionsBase.h:2065
FLImaging
Generated on
for FLImaging by
1.17.0