• Home
  • Raw
  • Download

Lines Matching full:usage

33  * @defgroup los_cpup CPU usage
52 * CPU usage error code: The request for memory fails.
62 * CPU usage error code: The pointer to an input parameter is NULL.
72 * CPU usage error code: The CPU usage is not initialized.
76 * Solution: Check whether the CPU usage is initialized.
82 * CPU usage error code: The number of threads is invalid.
92 * CPU usage error code: The target thread is not created.
102 * CPU usage error code: The target task ID is invalid.
130 * Count the CPU usage structures of a task.
197 * Count the CPU usage structures of all tasks.
201 UINT32 uwUsage; /**< Usage. The value range is [0,1000]. */
206 * Type of the CPU usage query.
215 * Mode of the CPU usage query.
225 * @brief Obtain the current CPU usage.
228 * This API is used to obtain the current CPU usage.
231 …* <li>This API can be called only after the CPU usage is initialized. Otherwise, error codes will …
232 …* <li> The precision of the CPU usage can be adjusted by changing the value of the CPUP_PRECISION …
237 * @retval #OS_ERRNO_CPUP_NO_INIT 0x02001e02: The CPU usage is not initialized.
238 …* @retval #cpup [0,1000], current CPU usage, of which the precision is …
247 * @brief Obtain the historical CPU usage.
250 * This API is used to obtain the historical CPU usage.
253 …* <li>This API can be called only after the CPU usage is initialized. Otherwise, the CPU usage fai…
257 …* @param mode [IN] UINT16. Task mode. The parameter value 0 indicates that the CPU usage with…
258 …* obtained, and the parameter value 1 indicates that the CPU usage in the former 1s will be obtain…
259 * indicate that the CPU usage in the period that is less than 1s will be obtained.
261 * @retval #OS_ERRNO_CPUP_NO_INIT 0x02001e02: The CPU usage is not initialized.
262 …* @retval #cpup [0,1000], historical CPU usage, of which the precision …
271 * @brief Obtain the CPU usage of a specified task.
274 * This API is used to obtain the CPU usage of a task specified by a passed-in task ID.
277 …* <li>This API can be called only after the CPU usage is initialized. Otherwise, the CPU usage fai…
280 * the CPU usage fails to be obtained.</li>
285 * @retval #OS_ERRNO_CPUP_NO_INIT 0x02001e02: The CPU usage is not initialized.
288 * @retval #cpup [0,1000], CPU usage of the specified task.
297 * @brief Obtain the historical CPU usage of a specified task.
300 * This API is used to obtain the historical CPU usage of a task specified by a passed-in task ID.
303 * <li>This API can be called only after the CPU usage is initialized. Otherwise,
304 * the CPU usage fails to be obtained.</li>
306 * the CPU usage fails to be obtained.</li>
310 …* @param mode [IN] UINT16. Task mode. The parameter value 0 indicates that the CPU usage withi…
311 …* will be obtained, and the parameter value 1 indicates that the CPU usage in the former 1s will b…
312 * Other values indicate that the CPU usage in the period that is less than 1s will be obtained.
314 * @retval #OS_ERRNO_CPUP_NO_INIT 0x02001e02: The CPU usage is not initialized.
317 * @retval #cpup [0,1000], CPU usage of the specified task.
326 * @brief Obtain the CPU usage of all tasks.
329 * This API is used to obtain the CPU usage of all tasks according to maximum number of threads.
332 …* <li>This API can be called only after the CPU usage is initialized. Otherwise, the CPU usage fai…
334 …* <li>The input parameter pointer must not be NULL, Otherwise, the CPU usage fails to be obtained.…
338 …* @param mode [IN] UINT16. Task mode. The parameter value 0 indicates that the CPU usage wi…
339 …* will be obtained, and the parameter value 1 indicates that the CPU usage in the former 1s will b…
340 * Other values indicate that the CPU usage in the period that is less than 1s will be obtained.
342 * @retval #OS_ERRNO_CPUP_NO_INIT 0x02001e02: The CPU usage is not initialized.
344 …* @retval #LOS_OK 0x00000000: The CPU usage of all tasks is successfully …
353 * @brief Obtain CPU usage history of certain task.
356 * This API is used to obtain CPU usage history of certain task.
359 …* <li>This API can be called only after the CPU usage is initialized. Otherwise, -1 will be return…
364 * @param mode [IN] mode,CPUP_IN_10S = usage in 10s,CPUP_IN_1S = usage in last 1s,
368 * @retval #OS_ERROR -1:CPU usage info obtain failed.
369 * @retval #LOS_OK 0:CPU usage info is successfully obtained.