2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.Collections.Generic;
21 using System.Threading.Tasks;
22 using System.ComponentModel;
24 namespace Tizen.System
27 /// Memory information.
29 public class SystemMemoryInformation
31 [EditorBrowsable(EditorBrowsableState.Never)]
32 internal SystemMemoryInformation(Interop.RuntimeInfo.MemoryInfo info)
41 /// Total memory (KiB).
43 public int Total { get; internal set; }
45 /// Used memory (KiB).
47 public int Used { get; internal set; }
49 /// Free memory (KiB).
51 public int Free { get; internal set; }
53 /// Cache memory (KiB).
55 public int Cache { get; internal set; }
57 /// Swap memory (KiB).
59 public int Swap { get; internal set; }
63 /// Memory information per process.
65 public class ProcessMemoryInformation
67 [EditorBrowsable(EditorBrowsableState.Never)]
68 internal ProcessMemoryInformation(Interop.RuntimeInfo.ProcessMemoryInfo info)
70 PrivateClean = info.PrivateClean;
71 PrivateDirty = info.PrivateDirty;
74 SharedClean = info.SharedClean;
75 SharedDirty = info.SharedDirty;
79 /// Virtual memory size (KiB).
81 public int Vsz { get; internal set; }
83 /// Resident set size (KiB).
85 public int Rss { get; internal set; }
87 /// Proportional set size (KiB).
89 public int Pss { get; internal set; }
91 /// Not modified and mapped by other processes (KiB).
93 public int SharedClean { get; internal set; }
95 /// Modified and mapped by other processes (KiB).
97 public int SharedDirty { get; internal set; }
99 /// Not modified and available only to that process (KiB).
101 public int PrivateClean { get; internal set; }
103 /// Modified and available only to that process (KiB).
105 public int PrivateDirty { get; internal set; }