Stdlib module sysinfo.vitl
This page is a wiki-style reference for one concrete stdlib file. It explains what the file owns, where it fits in the family, and how to decide whether this is the right surface to depend on.
sysinfo.vitl.Family: stdlib
Kind: public stdlib surface
Page style: this reference follows the same “encyclopedic card + portrait + usage contract” logic as the keyword pages, but for stdlib modules.
Summary
- Overview
- Purpose
- Taxonomy
- Implementation profile
- Top-level API inventory
- Position in family
- Declaration map
- Representative signatures
- How to use this module
- User example
- Keyword coverage
- Source shape
- Source landmarks
- Source organization
- Complete API catalog
- Integration boundaries
- Composition guidance
- Relationship table
- Neighbor modules
Overview
| Field | Value |
|---|---|
| Path | sysinfo.vitl |
| Family | stdlib |
| Kind | public stdlib surface |
| Line count | 487 |
| Declared procedures | 63 |
| Declared forms/picks | 13 |
`sysinfo.vitl` is a public stdlib surface inside the `stdlib` family. It should be read as one focused slice of the broader family responsibility: Top-level map of the Vitte standard library and the responsibilities owned by each family.
Purpose
This file should be chosen because of responsibility, not because its name “sounds close enough”. Inside the stdlib family, it carries one focused part of the contract and keeps that responsibility separate from neighboring concerns.
- Domain values start in `core` and `strings`.
- Grouped data moves through `collections` or `data`.
- Structured export goes through `json` and `encoding`.
- Filesystem or process interaction goes through `path`, `io`, `os`, or `sysinfo`.
- Explicit runtime coordination goes through `async`, `threading`, `kernel`, or `ffi`.
Taxonomy
Think of this page as a generated encyclopedia entry rather than a hand-written tutorial. The goal is to show what kind of module this is, how dense it is, and what reading strategy makes sense before depending on it.
- Large algorithm surface: this file exposes many procedures and likely acts as a domain toolkit rather than a single thin wrapper.
- Owns domain vocabulary: the module declares data shapes in addition to executable helpers, so its types are part of the contract.
- Minimal top-level dependencies: the module reads as mostly self-contained from its opening declarations.
- Explicit export surface: the file ends with visible export declarations instead of relying only on implicit namespace discovery.
Implementation profile
This profile is inferred directly from the source text. It does not replace reading the file, but it tells you quickly whether the module is mostly declarative, loop-heavy, branch-heavy, or organized around many small exits.
| Signal | Count | What it suggests |
|---|---|---|
if | 0 | Branching density and local decision-making. |
while | 0 | Loop-heavy or iterative implementation style. |
for | 1 | Collection-style traversal at source level. |
match | 0 | Variant-driven branching or grammar-style decoding. |
let | 3 | Local state and intermediate value density. |
give | 63 | Number of explicit exit points and result shaping. |
Top-level API inventory
| Surface | Items |
|---|---|
| Procedures | sysinfo_version, sysinfo_name, sysinfo_module_count, sysinfo_modules, sysinfo_manifest, sysinfo_ready, sysinfo_modules_detail, sysinfo_collection_count, get_os_info, get_os_name, get_os_version, get_architecture |
| Forms | OSInfo, CPUInfo, MemoryInfo, DiskStat, ProcessInfo, NetworkStat, BatteryInfo, SystemLoad, SysInfoManifest, SystemSummary, SystemSnapshot, SystemHealthReport |
| Picks | none declared at top level |
| Constants | none declared at top level |
| Exports | * |
Imported surfaces
This file does not advertise a top-level `use` surface in its opening declarations. That often means it is either self-contained or an aggregation layer.
Position in family
This file is module 15 of 15 in the stdlib family when ordered by path. By procedure count it ranks 6, and by line count it ranks 7. Those ranks are useful as rough signals of breadth, not as quality judgments.
Declaration map
The declaration map turns raw source into a scan-friendly catalog. It is useful when the file is large enough that a reader wants to orient by kinds of surfaces first.
| Line | Name | Kind | Role |
|---|---|---|---|
| 1 | vitte/sysinfo | space | Declares the namespace that anchors this file in the stdlib tree. |
| 11 | OSInfo | form | Introduces a structured data shape that other procedures can exchange. |
| 18 | CPUInfo | form | Introduces a structured data shape that other procedures can exchange. |
| 26 | MemoryInfo | form | Introduces a structured data shape that other procedures can exchange. |
| 35 | DiskStat | form | Introduces a structured data shape that other procedures can exchange. |
| 44 | ProcessInfo | form | Introduces a structured data shape that other procedures can exchange. |
| 53 | NetworkStat | form | Introduces a structured data shape that other procedures can exchange. |
| 63 | BatteryInfo | form | Introduces a structured data shape that other procedures can exchange. |
| 70 | SystemLoad | form | Introduces a structured data shape that other procedures can exchange. |
| 76 | SysInfoManifest | form | Introduces a structured data shape that other procedures can exchange. |
| 82 | SystemSummary | form | Introduces a structured data shape that other procedures can exchange. |
| 89 | SystemSnapshot | form | Introduces a structured data shape that other procedures can exchange. |
| 100 | SystemHealthReport | form | Introduces a structured data shape that other procedures can exchange. |
| 112 | SysInfoReport | form | Introduces a structured data shape that other procedures can exchange. |
| 119 | sysinfo_version | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 123 | sysinfo_name | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 127 | sysinfo_module_count | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 131 | sysinfo_modules | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 143 | sysinfo_manifest | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 151 | sysinfo_ready | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 155 | sysinfo_modules_detail | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 167 | sysinfo_collection_count | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 171 | get_os_info | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 180 | get_os_name | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 184 | get_os_version | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 188 | get_architecture | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 192 | is_windows | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 196 | is_linux | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 200 | is_macos | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 204 | is_unix | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 208 | get_cpu_info | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 218 | get_cpu_count | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 222 | get_cpu_count_physical | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 226 | get_cpu_frequency | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 230 | get_cpu_usage | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 234 | get_process_cpu_usage | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 238 | get_memory_info | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 249 | get_total_memory | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 253 | get_available_memory | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 257 | get_used_memory | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 261 | get_free_memory | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 265 | get_memory_percent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 269 | get_process_memory_mb | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 273 | get_disk_usage | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 284 | get_disk_usage_all | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 288 | get_total_disk_space | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 292 | get_used_disk_space | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 296 | get_free_disk_space | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 300 | get_process_info | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 311 | get_current_process_id | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 315 | get_parent_process_id | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 319 | get_running_processes | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 323 | get_process_count | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 327 | get_thread_count | proc | Owns coordination, scheduling, or concurrency behavior. |
| 331 | get_network_interfaces | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 335 | get_network_interface | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 347 | get_hostname | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 351 | get_local_ip | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 355 | get_mac_address | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 359 | get_uptime_seconds | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 363 | get_boot_time | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 367 | get_system_load_average | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 371 | get_battery_percent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 375 | get_battery_time_remaining | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 379 | is_on_battery | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 383 | is_charging | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 387 | get_battery_info | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 396 | get_system_health_report | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 410 | get_current_process_info | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 414 | get_system_load | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 422 | get_primary_disk_usage | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 426 | get_primary_network_stat | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 430 | get_system_snapshot | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 443 | get_system_summary | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 452 | get_sysinfo_report | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 461 | sysinfo_health | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 476 | sysinfo_selftest | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
The table is exhaustive for top-level declarations of the selected kinds. This file declares 77 matching surfaces.
Representative signatures
These signatures are shown in source order so the page keeps the feel of a reference manual, not just a keyword cloud.
form OSInfo {(line 11)form CPUInfo {(line 18)form MemoryInfo {(line 26)form DiskStat {(line 35)form ProcessInfo {(line 44)form NetworkStat {(line 53)form BatteryInfo {(line 63)form SystemLoad {(line 70)form SysInfoManifest {(line 76)form SystemSummary {(line 82)form SystemSnapshot {(line 89)form SystemHealthReport {(line 100)form SysInfoReport {(line 112)proc sysinfo_version() -> string {(line 119)proc sysinfo_name() -> string {(line 123)proc sysinfo_module_count() -> i32 {(line 127)proc sysinfo_modules() -> [string] {(line 131)proc sysinfo_manifest() -> SysInfoManifest {(line 143)
The list is intentionally capped here; the source file declares 76 matching signatures in total.
How to use this module
Start by reading the file as an ownership boundary. Ask three questions: what enters this module, what stable types or procedures it exports, and what adjacent module should stay outside of it.
- Read
spaceand top-level imports first so the ownership boundary ofsysinfo.vitlis explicit. - Read declared forms and picks before algorithms so the data vocabulary is stable in your head.
- Traverse procedures in source order; the early helpers usually explain the naming and numeric conventions used later.
- Use the source landmarks section below as a table of contents when the file is large.
- Only after that compare neighbor modules, because the right boundary choice matters more than memorizing one helper name.
User example
This example is generated from the actual stdlib module surface. Its job is not to be the smallest snippet possible; its job is to show a realistic consumer-shaped file that exercises the module and mirrors the language keywords the module itself relies on.
space demo/sysinfo
form DemoState {
ready: bool,
note: string
}
proc run_example() -> DemoState {
let ready: bool = sysinfo_ready()
give DemoState { ready: ready, note: "ok" }
}
export run_example
Keyword coverage
This table makes the “all keywords of the module” requirement auditable. It compares the detected Vitte keywords in the source file with the generated consumer example above.
| Keyword | Present in module source | Used in generated user example |
|---|---|---|
space | yes | yes |
form | yes | yes |
proc | yes | yes |
let | yes | yes |
for | yes | no |
give | yes | yes |
export | yes | yes |
true | yes | no |
false | yes | no |
and | yes | no |
Keywords still not exercised directly in the generated snippet: for, true, false, and. The page still lists them here so the gap is visible.
Source shape
space vitte/sysinfo
export *
form OSInfo {
name: string,
version: string,
architecture: string,
platform: string
}
form CPUInfo {
cores: i32,
The excerpt is not meant to replace the file. It exists to make the module recognizable at first glance, the same way a Wikipedia infobox helps the reader orient before reading the whole article.
Source landmarks
Large files are easier to retain when they have visible landmarks. When the source contains explicit section banners, they are surfaced here; otherwise the first major declarations are used as anchors.
- System Information Library / Self-contained facade for OS, CPU, memory, disks, / processes, network, battery, uptime, and system load
Source organization
When a file carries its own internal chaptering, those chapters usually reveal the intended reading order better than a flat symbol list. This section reconstructs that organization from the source itself.
Opening declarations
Top-level items: 1. Procedures: 0. Data surfaces: 0. Constants: 0.
First visible names: vitte/sysinfo
System Information Library / Self-contained facade for OS, CPU, memory, disks, / processes, network, battery, uptime, and system load
Top-level items: 77. Procedures: 63. Data surfaces: 13. Constants: 0.
First visible names: *, OSInfo, CPUInfo, MemoryInfo, DiskStat, ProcessInfo, NetworkStat, BatteryInfo, SystemLoad, SysInfoManifest
Complete API catalog
This catalog is the exhaustive file-level index for the module. It is intentionally closer to a generated encyclopedia appendix than to a tutorial summary.
Data surfaces
| Line | Name | Signature | Role |
|---|---|---|---|
| 11 | OSInfo | form OSInfo { | Introduces a structured data shape that other procedures can exchange. |
| 18 | CPUInfo | form CPUInfo { | Introduces a structured data shape that other procedures can exchange. |
| 26 | MemoryInfo | form MemoryInfo { | Introduces a structured data shape that other procedures can exchange. |
| 35 | DiskStat | form DiskStat { | Introduces a structured data shape that other procedures can exchange. |
| 44 | ProcessInfo | form ProcessInfo { | Introduces a structured data shape that other procedures can exchange. |
| 53 | NetworkStat | form NetworkStat { | Introduces a structured data shape that other procedures can exchange. |
| 63 | BatteryInfo | form BatteryInfo { | Introduces a structured data shape that other procedures can exchange. |
| 70 | SystemLoad | form SystemLoad { | Introduces a structured data shape that other procedures can exchange. |
| 76 | SysInfoManifest | form SysInfoManifest { | Introduces a structured data shape that other procedures can exchange. |
| 82 | SystemSummary | form SystemSummary { | Introduces a structured data shape that other procedures can exchange. |
| 89 | SystemSnapshot | form SystemSnapshot { | Introduces a structured data shape that other procedures can exchange. |
| 100 | SystemHealthReport | form SystemHealthReport { | Introduces a structured data shape that other procedures can exchange. |
| 112 | SysInfoReport | form SysInfoReport { | Introduces a structured data shape that other procedures can exchange. |
Procedures
| Line | Name | Signature | Role |
|---|---|---|---|
| 119 | sysinfo_version | proc sysinfo_version() -> string { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 123 | sysinfo_name | proc sysinfo_name() -> string { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 127 | sysinfo_module_count | proc sysinfo_module_count() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 131 | sysinfo_modules | proc sysinfo_modules() -> [string] { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 143 | sysinfo_manifest | proc sysinfo_manifest() -> SysInfoManifest { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 151 | sysinfo_ready | proc sysinfo_ready() -> bool { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 155 | sysinfo_modules_detail | proc sysinfo_modules_detail() -> [string] { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 167 | sysinfo_collection_count | proc sysinfo_collection_count() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 171 | get_os_info | proc get_os_info() -> OSInfo { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 180 | get_os_name | proc get_os_name() -> string { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 184 | get_os_version | proc get_os_version() -> string { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 188 | get_architecture | proc get_architecture() -> string { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 192 | is_windows | proc is_windows() -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 196 | is_linux | proc is_linux() -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 200 | is_macos | proc is_macos() -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 204 | is_unix | proc is_unix() -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 208 | get_cpu_info | proc get_cpu_info() -> CPUInfo { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 218 | get_cpu_count | proc get_cpu_count() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 222 | get_cpu_count_physical | proc get_cpu_count_physical() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 226 | get_cpu_frequency | proc get_cpu_frequency() -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 230 | get_cpu_usage | proc get_cpu_usage() -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 234 | get_process_cpu_usage | proc get_process_cpu_usage() -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 238 | get_memory_info | proc get_memory_info() -> MemoryInfo { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 249 | get_total_memory | proc get_total_memory() -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 253 | get_available_memory | proc get_available_memory() -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 257 | get_used_memory | proc get_used_memory() -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 261 | get_free_memory | proc get_free_memory() -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 265 | get_memory_percent | proc get_memory_percent() -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 269 | get_process_memory_mb | proc get_process_memory_mb() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 273 | get_disk_usage | proc get_disk_usage(path: string) -> DiskStat { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 284 | get_disk_usage_all | proc get_disk_usage_all() -> [DiskStat] { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 288 | get_total_disk_space | proc get_total_disk_space(path: string) -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 292 | get_used_disk_space | proc get_used_disk_space(path: string) -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 296 | get_free_disk_space | proc get_free_disk_space(path: string) -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 300 | get_process_info | proc get_process_info(pid: i32) -> ProcessInfo { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 311 | get_current_process_id | proc get_current_process_id() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 315 | get_parent_process_id | proc get_parent_process_id() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 319 | get_running_processes | proc get_running_processes() -> [ProcessInfo] { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 323 | get_process_count | proc get_process_count() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 327 | get_thread_count | proc get_thread_count() -> i32 { | Owns coordination, scheduling, or concurrency behavior. |
| 331 | get_network_interfaces | proc get_network_interfaces() -> [NetworkStat] { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 335 | get_network_interface | proc get_network_interface(name: string) -> NetworkStat { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 347 | get_hostname | proc get_hostname() -> string { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 351 | get_local_ip | proc get_local_ip() -> string { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 355 | get_mac_address | proc get_mac_address(interface: string) -> string { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 359 | get_uptime_seconds | proc get_uptime_seconds() -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 363 | get_boot_time | proc get_boot_time() -> i64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 367 | get_system_load_average | proc get_system_load_average() -> [f64] { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 371 | get_battery_percent | proc get_battery_percent() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 375 | get_battery_time_remaining | proc get_battery_time_remaining() -> i32 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 379 | is_on_battery | proc is_on_battery() -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 383 | is_charging | proc is_charging() -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 387 | get_battery_info | proc get_battery_info() -> BatteryInfo { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 396 | get_system_health_report | proc get_system_health_report() -> SystemHealthReport { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 410 | get_current_process_info | proc get_current_process_info() -> ProcessInfo { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 414 | get_system_load | proc get_system_load() -> SystemLoad { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 422 | get_primary_disk_usage | proc get_primary_disk_usage() -> DiskStat { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 426 | get_primary_network_stat | proc get_primary_network_stat() -> NetworkStat { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 430 | get_system_snapshot | proc get_system_snapshot() -> SystemSnapshot { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 443 | get_system_summary | proc get_system_summary() -> SystemSummary { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 452 | get_sysinfo_report | proc get_sysinfo_report() -> SysInfoReport { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 461 | sysinfo_health | proc sysinfo_health() -> bool { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 476 | sysinfo_selftest | proc sysinfo_selftest() -> bool { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
Exports
| Line | Name | Signature | Role |
|---|---|---|---|
| 9 | * | export * | Re-exports surfaces that the module wants to expose as part of its public boundary. |
Integration boundaries
Within stdlib, this file should remain focused. If a future helper changes the host boundary, scheduling boundary, or data-shape boundary, it probably belongs in a neighbor module instead of being added here by convenience.
- Family responsibility: Top-level map of the Vitte standard library and the responsibilities owned by each family.
- Family architecture role: A realistic Vitte program usually starts in `core`, grows through `collections` or `data`, crosses textual boundaries with `json` or `encoding`, touches the host with `path` or `io`, and only then reaches system-facing families like `kernel`, `ffi`, `async`, or `threading`.
Composition guidance
Choose this module when
- Choose
sysinfo.vitlwhen the main question is owned by this module rather than by transport, storage, orchestration, or user-interface code. - Domain values start in `core` and `strings`.
- Grouped data moves through `collections` or `data`.
- Structured export goes through `json` and `encoding`.
- Filesystem or process interaction goes through `path`, `io`, `os`, or `sysinfo`.
- Explicit runtime coordination goes through `async`, `threading`, `kernel`, or `ffi`.
Pause before extending it when
- Avoid extending this file when the new helper mostly changes the boundary to host I/O, runtime coordination, or foreign integration instead of staying inside
stdlib. - Check nearby modules such as
GETTING_STARTED.vitl,core_alias.vitl,datetime.vitlbefore adding convenience wrappers here.
Relationship table
This table keeps the page closer to a real encyclopedia entry: a module is easier to understand when compared with its nearest alternatives in the same family.
| Neighbor | Procedures | Data surfaces | Why compare it |
|---|---|---|---|
GETTING_STARTED.vitl | 26 | 0 | Shares the same family boundary but carries a distinct slice of responsibility. |
core_alias.vitl | 0 | 0 | Shares the same family boundary but carries a distinct slice of responsibility. |
datetime.vitl | 138 | 16 | Shares the same family boundary but carries a distinct slice of responsibility. |
graphics.vitl | 5 | 0 | Shares the same family boundary but carries a distinct slice of responsibility. |
memory.vitl | 137 | 16 | Shares the same family boundary but carries a distinct slice of responsibility. |
mod.vit | 16 | 2 | Shares the same family boundary but carries a distinct slice of responsibility. |
network/http.vitl | 4 | 2 | Shares the same family boundary but carries a distinct slice of responsibility. |
network/socket.vitl | 5 | 2 | Shares the same family boundary but carries a distinct slice of responsibility. |