Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3rdparty/libprocess
/ _cpus_total
Method
_cpus_total
include/process/system.hpp:132–139 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
130
131
132
Future<double> _cpus_total()
133
{
134
Try<long> cpus = os::cpus();
135
if (cpus.isSome()) {
136
return cpus.get();
137
}
138
return Failure(
"Failed to get cpus: "
+ cpus.error());
139
}
140
141
142
Future<double> _mem_total_bytes()
Callers
nothing calls this directly
Calls
2
Failure
Class · 0.85
get
Method · 0.45
Tested by
no test coverage detected