Class ProcessMemoryUsage

Definition

Namespace:
Tizen.System
Assembly:
Tizen.System.Information.dll
API Level:
4

The class for memory information per process.

C#
Copy
public class ProcessMemoryUsage
Inheritance
System.Object
ProcessMemoryUsage

Constructors

View Source

ProcessMemoryUsage(IEnumerable<Int32>)

The constructor of ProcessMemoryInformation class.

Declaration
C#
Copy
public ProcessMemoryUsage(IEnumerable<int> pid)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Int32> pid

List of unique process ids.

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is empty.

IOException

Thrown when an I/O error occurs while reading from the system or requesting to the resource management daemon.

OutOfMemoryException

Thrown when the memory is not enough to allocate.

UnauthorizedAccessException

Thrown when the caller does not have privilege to use this method.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/systemmonitor

Properties

View Source

Count

The number of usage entries.

Declaration
C#
Copy
public int Count { get; }
Property Value
Type Description
Int32
API Level: 4

Methods

View Source

GetPrivateClean(Int32)

Gets the size not modified and available only to that process of a process.

Declaration
C#
Copy
public int GetPrivateClean(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
Int32

The private clean memory size pid is using (KiB).

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is invalid.

API Level: 4
View Source

GetPrivateDirty(Int32)

Gets the size modified and available only to that process of a process.

Declaration
C#
Copy
public int GetPrivateDirty(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
Int32

The private dirty memory size pid is using (KiB).

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is invalid.

API Level: 4
View Source

GetPss(Int32)

Gets the proportional set size of a process.

Declaration
C#
Copy
public int GetPss(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
Int32

The proportional set size pid is using (KiB).

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is invalid.

API Level: 4
View Source

GetRss(Int32)

Gets the resident set size of a process.

Declaration
C#
Copy
public int GetRss(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
Int32

The resident set size pid is using (KiB).

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is invalid.

API Level: 4
View Source

GetSharedClean(Int32)

Gets the size not modified and mapped by other processes of a process.

Declaration
C#
Copy
public int GetSharedClean(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
Int32

The shared clean memory size pid is using (KiB).

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is invalid.

API Level: 4
View Source

GetSharedDirty(Int32)

Gets the size modified and mapped by other processes of a process.

Declaration
C#
Copy
public int GetSharedDirty(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
Int32

The shared dirty memory size pid is using (KiB).

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is invalid.

API Level: 4
View Source

GetVsz(Int32)

Gets the virtual memory size of a process.

Declaration
C#
Copy
public int GetVsz(int pid)
Parameters
Type Name Description
Int32 pid

The process id.

Returns
Type Description
Int32

The virtual memory size pid is using (KiB).

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is invalid.

API Level: 4
View Source

Update(IEnumerable<Int32>)

Update the process memory information to the latest.

Declaration
C#
Copy
public void Update(IEnumerable<int> pid)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Int32> pid

List of unique process ids.

Exceptions
Type Condition
System.ArgumentException

Thrown when the pid is empty.

IOException

Thrown when an I/O error occurs while reading from the system or requesting to the resource management daemon.

OutOfMemoryException

Thrown when the memory is not enough to allocate.

UnauthorizedAccessException

Thrown when the caller does not have privilege to use this method.

API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/systemmonitor