Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Shocking::Usage::ProcessInfo
Inherits
Struct
<
Value
<
Object
Constructors
new
(pid :
Int32
, name :
String
, cpu_percent :
Float64
= 0.0, memory_kb :
Int64
= 0, state :
Char
= '
S
')
Source
Instance methods
<=>
(other :
ProcessInfo
) :
Int32
Source
cpu_percent
Source
cpu_percent=
(cpu_percent :
Float64
)
Source
memory_kb
Source
memory_kb=
(memory_kb :
Int64
)
Source
name
Source
name=
(name :
String
)
Source
pid
Source
pid=
(pid :
Int32
)
Source
state
Source
state=
(state :
Char
)
Source