C# Class NSoft.NFramework.Diagnostics.ProcessTool

显示文件 Open project: debop/NFramework Class Usage Examples

Public Methods

Method Description
TrimAllProcessMemory ( bool excludeThisProcess = true, string excludeProcessNames = null ) : void

시스템에서 실행중인 모든 프로세스에 대해, 사용하지 않는 WorkingSet 메모리를 OS에게 반환하도록 합니다.

TrimProcessMemory ( Process process ) : bool

지정된 프로세스의 사용하지 않는 WorkingSet 메모리를 OS에게 반환하도록 합니다.

Private Methods

Method Description
EmptyWorkingSet ( long hProcess ) : bool

Method Details

TrimAllProcessMemory() public static method

시스템에서 실행중인 모든 프로세스에 대해, 사용하지 않는 WorkingSet 메모리를 OS에게 반환하도록 합니다.
public static TrimAllProcessMemory ( bool excludeThisProcess = true, string excludeProcessNames = null ) : void
excludeThisProcess bool 현재 프로세스를 제외할 것인가 여부 (기본값은 제외)
excludeProcessNames string 메모리 반환을 하지 않을 프로세스 명의 컬렉션
return void

TrimProcessMemory() public static method

지정된 프로세스의 사용하지 않는 WorkingSet 메모리를 OS에게 반환하도록 합니다.
public static TrimProcessMemory ( Process process ) : bool
process System.Diagnostics.Process 메모리 해제를 할 프로세스
return bool