Skip to content

System

Spice
import "std/os/system";

Functions

getCPUCoreCount

Spice
public f<long> getCPUCoreCount()

Returns the number of CPU cores of the host system.

return Number of cores

Returns: long

getPageSize

Spice
public f<unsigned int> getPageSize()

Returns the system page size of the host system.

return Page size

Returns: unsigned int

getCPUCoreCount

Spice
public f<int> getCPUCoreCount()

Returns the number of CPU cores of the host system.

return Number of cores

Returns: int

getArchName

Spice
public f<string> getArchName()

Returns the name of the host CPU architecture.

Possible return values:
- "amd64"
- "arm"
- "arm64"
- "ia64"
- "intel"

return Architecture name

Returns: string