using System;
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/// <typeparam name="T">The generic type to return.</typeparam>
/// <param name="key">The runtime information key for which the current should be read </param>
/// <returns>The current status of the given key</returns>.
- /// <exception cref="ArgumentException">Thrown when the <paramref name="key"/> is invalid or I/O error is occurred while reading from system.</exception>
+ /// <exception cref="ArgumentException">Thrown when the <paramref name="key"/> is invalid.</exception>
+ /// <exception cref="IOException">Thrown when I/O error is occurred while reading from system.</exception>
/// <exception cref="NotSupportedException">Thrown when the feature related <paramref name="key"/> is not supported.</exception>
public static T GetStatus<T>(RuntimeInformationKey key)
{\r
/// Gets system memory information
/// </summary>
/// <returns>The system memory information structure.</returns>
- /// <exception cref="ArgumentException">Thrown when I/O error is occurred while reading from system.</exception>
+ /// <exception cref="IOException">Thrown when I/O error is occurred while reading from system.</exception>
public static SystemMemoryInformation GetSystemMemoryInformation()
{
Interop.RuntimeInfo.MemoryInfo info = new Interop.RuntimeInfo.MemoryInfo();
/// <param name="pid">List of unique process ids </param>
/// <returns>List of memory information per processes</returns>
/// <privilege>http://tizen.org/privilege/systemmonitor</privilege>
- /// <exception cref="ArgumentException">Thrown when the <paramref name="pid"/> is empty or I/O error is occurred while reading from system or requesting to resource management daemon.</exception>
+ /// <exception cref="ArgumentException">Thrown when the <paramref name="pid"/> is empty.</exception>
+ /// <exception cref="IOException">Thrown when I/O error is occurred while reading from system or requesting to resource management daemon.</exception>
/// <exception cref="OutOfMemoryException">Thrown when the memory is not enough to allocate.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when caller doesn't have a privilege to use this method.</exception>
public static IDictionary<int, ProcessMemoryInformation> GetProcessMemoryInformation(IEnumerable<int> pid)
/// Gets system CPU usage time
/// </summary>
/// <returns>The system CPU usage time structure.</returns>
- /// <exception cref="ArgumentException">Thrown when I/O error is occurred while reading from system.</exception>
+ /// <exception cref="IOException">Thrown when I/O error is occurred while reading from system.</exception>
public static CpuUsage GetCpuUsage()
{
Interop.RuntimeInfo.CpuUsage usage = new Interop.RuntimeInfo.CpuUsage();
/// <param name="pid">List of unique process ids </param>
/// <returns>List of CPU usage information per processes</returns>
/// <privilege>http://tizen.org/privilege/systemmonitor</privilege>
- /// <exception cref="ArgumentException">Thrown when the <paramref name="pid"/> is empty or I/O error is occurred while reading from system or requesting to resource management daemon.</exception>
+ /// <exception cref="ArgumentException">Thrown when the <paramref name="pid"/> is empty.</exception>
+ /// <exception cref="IOException">Thrown when I/O error is occurred while reading from system or requesting to resource management daemon.</exception>
/// <exception cref="OutOfMemoryException">Thrown when the memory is not enough to allocate.</exception>
/// <exception cref="UnauthorizedAccessException">Thrown when caller doesn't have a privilege to use this method.</exception>
public static IDictionary<int, ProcessCpuUsage> GetProcessCpuUsage(IEnumerable<int> pid)
/// Gets the number of processors
/// </summary>
/// <value>The number of processors</value>
- /// <exception cref="ArgumentException">Thrown when I/O error is occurred while reading from system.</exception>
+ /// <exception cref="IOException">Thrown when I/O error is occurred while reading from system.</exception>
public static int ProcessorCount
{
get
/// </summary>
/// <param name="coreId">The index (from 0) of CPU core that you want to know the frequency</param>
/// <returns>The current frequency(MHz) of processor</returns>
- /// <exception cref="ArgumentException">Thrown when the <paramref name="coreid"/> is invalid or I/O error is occurred while reading from system.</exception>
+ /// <exception cref="ArgumentException">Thrown when the <paramref name="coreid"/> is invalid.</exception>
+ /// <exception cref="IOException">Thrown when I/O error is occurred while reading from system.</exception>
/// <exception cref="NotSupportedException">Thrown when this system doesn't store CPU current frequency.</exception>
public static int GetProcessorCurrentFrequency(int coreId)
{
/// </summary>
/// <param name="coreId">The index (from 0) of CPU core that you want to know the frequency</param>
/// <returns>The max frequency(MHz) of processor</returns>
- /// <exception cref="ArgumentException">Thrown when the <paramref name="coreid"/> is invalid or I/O error is occurred while reading from system.</exception>
+ /// <exception cref="ArgumentException">Thrown when the <paramref name="coreid"/> is invalid.</exception>
+ /// <exception cref="IOException">Thrown when I/O error is occurred while reading from system.</exception>
/// <exception cref="NotSupportedException">Thrown when this system doesn't store CPU max frequency.</exception>
public static int GetProcessorMaxFrequency(int coreId)
{