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;
23 namespace Tizen.System
26 /// Structure for cpu usage.
30 internal CpuUsage(Interop.RuntimeInfo.CpuUsage usage)
32 IoWait = usage.IoWait;
34 System = usage.System;
38 /// Time running un-niced user processes (Percent)
40 public double User { get; internal set; }
42 /// Time running kernel processes (Percent)
44 public double System { get; internal set; }
46 /// Time running niced user processes (Percent)
48 public double Nice { get; internal set; }
50 /// Time waiting for I/O completion (Percent)
52 public double IoWait { get; internal set; }
56 /// Structure for cpu usage per processes
58 public class ProcessCpuUsage
60 internal ProcessCpuUsage(Interop.RuntimeInfo.ProcessCpuUsage usage)
66 /// Amount of time that this process has been scheduled in user mode (clock ticks)
68 public uint UTime { get; internal set; }
70 /// Amount of time that this process has been scheduled in kernel mode (clock ticks)
72 public uint STime { get; internal set; }