https://stackoverflow.com/questions/437683/how-to-get-the-memory-used-by-a-delphi-program
How to get the Memory Used by a Delphi Program
I know how to get the System memory use using GlobalMemoryStatusEx, but that tells me the what the entire OS is using. I really want my program to report how much memory it alone has allocated and...
stackoverflow.com
프로세스가 사용하고 있는 메모리 정보
uses psAPI;
function CurrentProcessMemory: Cardinal;
var
MemCounters: TProcessMemoryCounters;
begin
MemCounters.cb := SizeOf(MemCounters);
if GetProcessMemoryInfo(GetCurrentProcess,
@MemCounters,
SizeOf(MemCounters)) then
Result := MemCounters.WorkingSetSize
else
RaiseLastOSError;
end;반응형
'Delphi' 카테고리의 다른 글
| [Delphi] TreeView Node 에서 마우스 우측버튼 사용시 선택 (0) | 2022.05.17 |
|---|---|
| [Delphi] MS Excel Automation in Delphi (0) | 2022.05.14 |
| [Delphi] 설치된 ActiveX 리스트 불러오기 (0) | 2022.05.14 |
| [Delphi] DataSnap방식으로 Client에서 Server로 이미지를 upload하는 방식 (0) | 2022.05.13 |
| [Delphi] Custom drawing of menu items (0) | 2022.05.13 |