FLImaging
7.11.27.4
Toggle main menu visibility
FLImagingBase
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
406
static
bool
GetCpuTemperature
(
double
& f64CpuTemperature,
bool
& bTemperatureFromEstimatedTjMax);
407
408
409
DeclareGetClassType();
410
};
411
}
412
}
413
FLImaging::Base::CFLBase::CFLBase
CFLBase()
기본 생성자
FLImaging::Base::CSystemInformation::GetProcessorL3LineSize
static int32_t GetProcessorL3LineSize()
프로세서 L3 라인 크기를 얻음
FLImaging::Base::CSystemInformation::GetDMAChannelCount
static int32_t GetDMAChannelCount()
DMA Channel 개수를 얻음
FLImaging::Base::CSystemInformation::GetProcessorUsage
static double GetProcessorUsage()
프로세서 사용률을 Percent 단위로 얻음
FLImaging::Base::CSystemInformation::GetProcessorName
static const wchar_t * GetProcessorName()
프로세서 명칭을 얻음
FLImaging::Base::CSystemInformation::GetProcessorL1CacheSize
static int32_t GetProcessorL1CacheSize()
프로세서 L1 캐시 크기를 얻음
FLImaging::Base::CSystemInformation::GetCPUInstruction
static ECPUInstructionType GetCPUInstruction()
CPU 명령어 타입을 얻음
FLImaging::Base::CSystemInformation::GetLogicalProcessorCoreCount
static int32_t GetLogicalProcessorCoreCount()
논리 프로세서 코어 개수를 얻음
FLImaging::Base::CSystemInformation::GetTotalPhysicalMemory
static uint64_t GetTotalPhysicalMemory()
전체 물리 메모리 양을 얻음
FLImaging::Base::CSystemInformation::IsX64OperatingSystem
static bool IsX64OperatingSystem()
x64 운영체제에서 프로그램이 구동중인지 확인합니다.
FLImaging::Base::CSystemInformation::GetMemoryClockSpeed
static int32_t GetMemoryClockSpeed()
Memory Clock 을 얻음
FLImaging::Base::CSystemInformation::GetAllocatablePhysicalMemory
static uint64_t GetAllocatablePhysicalMemory()
실제 메모리 할당 가능 크기를 바이트 단위로 반환. 메모리 단편화 정도에 따라 큰 메모리를 반환된 만큼 할당 불가능할 수 있으나, 작은 메모리로 쪼개서 할당하는 경우 해당 함수로 판...
FLImaging::Base::CSystemInformation::GetOperatingSystemType
static EOperatingSystemType GetOperatingSystemType()
운영체제 종류를 얻어옵니다.
FLImaging::Base::CSystemInformation::GetProcessorL1CacheCount
static int32_t GetProcessorL1CacheCount()
프로세서 L1 캐시 개수를 얻음
FLImaging::Base::CSystemInformation::GetProcessorClockSpeed
static int32_t GetProcessorClockSpeed()
프로세서 Clock 을 얻음
FLImaging::Base::CSystemInformation::GetAvailableVirtualMemory
static uint64_t GetAvailableVirtualMemory()
유효한 가상 메모리 양을 얻음
FLImaging::Base::CSystemInformation::EMemoryType
EMemoryType
메모리 타입
Definition
FLImagingBase/SystemInformation.h:39
FLImaging::Base::CSystemInformation::EMemoryType_DDR2_FB_DIMM
@ EMemoryType_DDR2_FB_DIMM
Definition
FLImagingBase/SystemInformation.h:50
FLImaging::Base::CSystemInformation::EMemoryType_Unknown
@ EMemoryType_Unknown
Definition
FLImagingBase/SystemInformation.h:41
FLImaging::Base::CSystemInformation::EMemoryType_DDR2
@ EMemoryType_DDR2
Definition
FLImagingBase/SystemInformation.h:47
FLImaging::Base::CSystemInformation::EMemoryType_DDR
@ EMemoryType_DDR
Definition
FLImagingBase/SystemInformation.h:44
FLImaging::Base::CSystemInformation::EMemoryType_DDR3
@ EMemoryType_DDR3
Definition
FLImagingBase/SystemInformation.h:53
FLImaging::Base::CSystemInformation::EMemoryType_DDR6_Or_Higher
@ EMemoryType_DDR6_Or_Higher
Definition
FLImagingBase/SystemInformation.h:62
FLImaging::Base::CSystemInformation::EMemoryType_DDR5
@ EMemoryType_DDR5
Definition
FLImagingBase/SystemInformation.h:59
FLImaging::Base::CSystemInformation::EMemoryType_DDR4
@ EMemoryType_DDR4
Definition
FLImagingBase/SystemInformation.h:56
FLImaging::Base::CSystemInformation::GetMemoryChannelCount
static int32_t GetMemoryChannelCount()
Memory Channel을 얻음
FLImaging::Base::CSystemInformation::GetProcessorL1LineSize
static int32_t GetProcessorL1LineSize()
프로세서 L1 라인 크기를 얻음
FLImaging::Base::CSystemInformation::GetPhysicalProcessorCoreCount
static int32_t GetPhysicalProcessorCoreCount()
물리 프로세서 코어 개수를 얻음
FLImaging::Base::CSystemInformation::GetNumaNodeCount
static int32_t GetNumaNodeCount()
Numa Node 개수를 얻음
FLImaging::Base::CSystemInformation::GetCpuTemperature
static bool GetCpuTemperature(double &f64CpuTemperature, bool &bTemperatureFromEstimatedTjMax)
CPU의 온도를 섭씨 단위로 얻어오는 함수. Intel, AMD CPU에 대해 지원.
FLImaging::Base::CSystemInformation::GetProcessorL3CacheSize
static int32_t GetProcessorL3CacheSize()
프로세서 L3 캐시 크기를 얻음
FLImaging::Base::CSystemInformation::GetTotalVirtualMemory
static uint64_t GetTotalVirtualMemory()
전체 가상 메모리 양을 얻음
FLImaging::Base::CSystemInformation::GetProcessorL2CacheCount
static int32_t GetProcessorL2CacheCount()
프로세서 L2 캐시 개수를 얻음
FLImaging::Base::CSystemInformation::GetProcessorPackageCount
static int32_t GetProcessorPackageCount()
프로세서 패키지 개수를 얻음
FLImaging::Base::CSystemInformation::GetProcessorL2CacheSize
static int32_t GetProcessorL2CacheSize()
프로세서 L2 캐시 크기를 얻음
FLImaging::Base::CSystemInformation::GetProcessorL2LineSize
static int32_t GetProcessorL2LineSize()
프로세서 L2 라인 크기를 얻음
FLImaging::Base::CSystemInformation::GetProcessorL3CacheCount
static int32_t GetProcessorL3CacheCount()
프로세서 L3 캐시 개수를 얻음
FLImaging::Base::CSystemInformation::GetAvailablePhysicalMemory
static uint64_t GetAvailablePhysicalMemory()
유효한 물리 메모리 양을 얻음
FLImaging::Base::CSystemInformation::CSystemInformation
CSystemInformation()
생성자
FLImaging::Base::CSystemInformation::GetMemoryType
static EMemoryType GetMemoryType()
Memory Type 을 얻음
FLImaging::Base
Definition
FLImagingBase/AESCryptography.h:18
FLImaging::Base::EOperatingSystemType
EOperatingSystemType
운영체제 타입
Definition
FLImagingBase/DefinitionsBase.h:2841
FLImaging::Base::ECPUInstructionType
ECPUInstructionType
CPU 명령어 타입
Definition
FLImagingBase/DefinitionsBase.h:2065
FLImaging
생성시간 :
, 프로젝트명 : FLImaging, 생성자 :
1.17.0