struct Hardware::PID
- Hardware::PID
- Struct
- Value
- Object
Defined in:
hardware/pid.crConstructors
- .new(pid : Int32 = Process.pid, cpu_time : Bool = true, cpu_total : Bool = true)
- .new(executable : String, cpu_time = true, cpu_total = true)
Class Method Summary
- .all(cpu_time = false, cpu_total = false, &)
- 
        .cpu_total_current
        
          Used to avoid duplicate operations when lots of Hardware::PID are created (like a top implementation) 
- 
        .cpu_total_current=(cpu_total_current : Int32)
        
          Used to avoid duplicate operations when lots of Hardware::PID are created (like a top implementation) 
- .get_pids(executable : String)
Instance Method Summary
- #cmajflt
- #cmdline
- #cminflt
- 
        #comm
        
          Generate methods based on stat 
- #command
- #cpu_time(children = false)
- #cpu_time_previous : Int32
- #cpu_time_previous=(cpu_time_previous : Int32)
- #cpu_total_previous : Int32
- #cpu_total_previous=(cpu_total_previous : Int32)
- #cpu_used
- #cstime
- #cutime
- #exe
- #flags
- #itrealvalue
- #majflt
- 
        #memory
        
          Assuming that PAGESIZE is 4096 kB 
- #minflt
- #name
- #nice
- #numthreads
- #pgrp
- #pid : Int32
- #ppid
- #priority
- #rss
- #session
- #starttime
- #stat
- #state
- #statm
- #status
- #stime
- #tpgid
- #tty_nr
- #utime
- #vsize
Constructor Detail
Class Method Detail
        
        def self.cpu_total_current
        #
      
      
        Used to avoid duplicate operations when lots of Hardware::PID are created (like a top implementation)
        
        def self.cpu_total_current=(cpu_total_current : Int32)
        #
      
      
        Used to avoid duplicate operations when lots of Hardware::PID are created (like a top implementation)