ImSQL
C++ 기반 SQL 자동화 및 라이선스 관리 엔진
Loading...
Searching...
No Matches
utils::system_info::CPU::TimeStat Struct Reference

CPU 시간 관련 세부 통계. More...

#include <system_info_cpu.hpp>

Public Member Functions

uint64_t getIdleTotal () const noexcept
 idle + io_wait 합을 계산합니다.
 
uint64_t getTotal () const noexcept
 모든 CPU 시간 총합을 계산합니다.
 

Public Attributes

uint64_t user
 
uint64_t nice
 
uint64_t system
 
uint64_t idle
 
uint64_t io_wait
 
uint64_t irq
 
uint64_t soft_irq
 
uint64_t steal
 

Detailed Description

CPU 시간 관련 세부 통계.

  • user: 사용자 모드 시간
  • nice: nice값이 적용된 사용자 모드 시간
  • system: 커널 모드 시간
  • idle: 유휴 상태 시간
  • io_wait: I/O 작업 대기 시간
  • irq: 하드웨어 인터럽트 처리 시간
  • soft_irq: 소프트웨어 인터럽트 처리 시간
  • steal: 가상화 환경에서 할당된 CPU 시간 중 강제로 빼앗긴 시간

Member Function Documentation

◆ getIdleTotal()

uint64_t utils::system_info::CPU::TimeStat::getIdleTotal ( ) const
inlinenodiscardnoexcept

idle + io_wait 합을 계산합니다.

Returns
유휴 상태 총합

◆ getTotal()

uint64_t utils::system_info::CPU::TimeStat::getTotal ( ) const
inlinenodiscardnoexcept

모든 CPU 시간 총합을 계산합니다.

Returns
전체 CPU 시간

The documentation for this struct was generated from the following file: