MCPcopy Create free account

hub / github.com/GuillaumeGomez/sysinfo / functions

Functions1,805 in github.com/GuillaumeGomez/sysinfo

↓ 2 callersMethodmemory
(&self)
src/unix/bsd/system_common.rs:106
↓ 2 callersMethodmemory
(&self)
src/unix/apple/macos/process.rs:174
↓ 2 callersFunctionmemory_limits
( base: &Path, root: &Path, limit_file: &str, usage_file: &str, mem_total: u64, base_l
src/unix/linux/cgroup.rs:195
↓ 2 callersMethodmodel
Returns the model of this GPU. Returns `None` if the information cannot be retrieved.
src/common/gpu.rs:254
↓ 2 callersMethodname
Returns the name of the user. ```no_run use sysinfo::Users; if let Ok(users) = Users::new_with_refreshed_list() { for user in &users { println!("{}"
src/common/user.rs:95
↓ 2 callersMethodname
Returns the system name. | example platform | value of `System::name()` | |---|---| | linux laptop | "Ubuntu" | | android phone | "Pixel 9 Pro" | | a
src/common/system.rs:811
↓ 2 callersMethodnext
(&mut self)
src/unix/bsd/freebsd/disk.rs:562
↓ 2 callersFunctionnull_terminated_wchar_to_string
(slice: &[u16])
src/windows/process.rs:1038
↓ 2 callersMethodopen
(proc_dir: &mut ProcDir<'_>, name: &CStr)
src/unix/linux/process.rs:493
↓ 2 callersFunctionparse_device_tree_compatible
Parses the first entry of the file `/proc/device-tree/compatible`, to extract the vendor and motherboard name. This file contains several `\0` separat
src/unix/linux/motherboard.rs:56
↓ 2 callersMethodpercent
(&self)
src/unix/apple/cpu.rs:127
↓ 2 callersFunctionperform_call
( conn: io_connect_t, index: c_int, input_structure: *const ffi::KeyData_t, output_structure:
src/unix/apple/macos/component/x86.rs:178
↓ 2 callersMethodpid
(&self)
src/unix/apple/macos/process.rs:158
↓ 2 callersMethodpid
Returns the PID of the process. ```no_run use sysinfo::{Pid, System}; if let Ok(s) = System::new_all() && let Some(process) = s.process(Pid::from(13
src/common/system.rs:1854
↓ 2 callersMethodprocesses_by_name
Returns an iterator of process containing the given `name`. If you want only the processes with exactly the given `name`, take a look at [`System::pr
src/common/system.rs:529
↓ 2 callersFunctionread_cgroup_limits_context
()
src/unix/linux/cgroup.rs:117
↓ 2 callersFunctionread_file
(path: P, buffer: &mut String)
src/unix/linux/gpu.rs:219
↓ 2 callersMethodread_link
Reads the target of the `name` link into `buf`, replacing its previous content.
src/unix/linux/process.rs:927
↓ 2 callersFunctionread_table
(filename: &str, colsep: char, mut f: F)
src/unix/linux/cgroup.rs:288
↓ 2 callersFunctionread_table
(filename: &str, colsep: char, mut f: F)
src/unix/linux/system.rs:579
↓ 2 callersFunctionread_table_key
(filename: &Path, target_key: &str, colsep: char)
src/unix/linux/cgroup.rs:307
↓ 2 callersMethodreceived
Returns the number of received bytes since the last refresh. If you want the total number of bytes received, take a look at the [`total_received`](Ne
src/common/network.rs:136
↓ 2 callersMethodrefresh
(&mut self, refresh_kind: CpuRefreshKind)
src/unix/bsd/freebsd/cpu.rs:44
↓ 2 callersMethodrefresh
(&mut self, refresh_kind: CpuRefreshKind)
src/unix/bsd/netbsd/cpu.rs:40
↓ 2 callersMethodrefresh
(&mut self, refresh_kind: CpuRefreshKind, port: mach_port_t)
src/unix/apple/cpu.rs:31
↓ 2 callersMethodrefresh
(&mut self, only_update_global_cpu: bool, refresh_kind: CpuRefreshKind)
src/unix/linux/cpu.rs:45
↓ 2 callersMethodrefresh
(&self)
src/windows/cpu.rs:222
↓ 2 callersMethodrefresh
Refreshes the components list. ```no_run use sysinfo::Components; if let Ok(mut components) = Components::new_with_refreshed_list() { // We wait som
src/common/component.rs:104
↓ 2 callersMethodrefresh
The user list will be emptied then completely recomputed. ```no_run use sysinfo::Users; if let Ok(mut users) = Users::new() { users.refresh(); } ```
src/common/user.rs:287
↓ 2 callersFunctionrefresh_disk
(disk: &mut DiskInner, refresh_kind: DiskRefreshKind)
src/unix/bsd/freebsd/disk.rs:210
↓ 2 callersFunctionrefresh_disk
(disk: &mut DiskInner, refresh_kind: DiskRefreshKind)
src/unix/bsd/netbsd/disk.rs:156
↓ 2 callersFunctionrefresh_disk_io
(disks: &mut [T])
src/unix/bsd/freebsd/disk.rs:249
↓ 2 callersFunctionrefresh_disk_io
(disks: &mut [T])
src/unix/bsd/netbsd/disk.rs:249
↓ 2 callersMethodrefresh_io
(&mut self, refresh_kind: DiskRefreshKind)
src/unix/apple/disk.rs:182
↓ 2 callersMethodrefresh_kind
(&mut self, refresh_kind: DiskRefreshKind)
src/unix/apple/disk.rs:159
↓ 2 callersFunctionretrieve_all_new_process_info
( is_thread: bool, pid: Pid, parent_pid: Option<Pid>, parts: &mut Parts, proc_dir: &mut Pr
src/unix/linux/process.rs:1133
↓ 2 callersMethodroot
(&self)
src/unix/bsd/system_common.rs:102
↓ 2 callersMethodroot
Returns the path of the root directory. ⚠️ Not implemented in NetBSD. ```no_run use sysinfo::{Pid, System}; if let Ok(s) = System::new_all() && let
src/common/system.rs:1921
↓ 2 callersMethodserial_number
Returns the motherboard serial number. This corresponds to the serial number assigned by the motherboard's manufacturer (e.g. "W1KS427111E"). Import
src/common/system.rs:1120
↓ 2 callersMethodset
Sets the given argument to the corresponding fields.
src/unix/linux/cpu.rs:224
↓ 2 callersMethodset_cpu_usage
(&mut self, value: f32)
src/unix/apple/cpu.rs:131
↓ 2 callersMethodset_proxy_blanket
(self)
src/windows/component.rs:226
↓ 2 callersFunctionsockaddr_to_network_addr
(sa: *const libc::sockaddr)
src/unix/network_helper.rs:248
↓ 2 callersFunctionsysinfo_process_by_pid
(system: CSystem, pid: PID)
src/c_interface.rs:392
↓ 2 callersMethodsystem_time
(&self)
src/unix/linux/cpu.rs:257
↓ 2 callersMethodtemperature
(&self)
src/unix/apple/macos/component/x86.rs:61
↓ 2 callersMethodtemperature
(&self)
src/windows/component.rs:52
↓ 2 callersMethodtransmitted
Returns the number of transmitted bytes since the last refresh. If you want the total number of bytes transmitted, take a look at the [`total_transmi
src/common/network.rs:178
↓ 2 callersFunctionupdate_cpu_usage
( port: libc::mach_port_t, global_cpu: &mut CpuUsage, f: F, )
src/unix/apple/cpu.rs:271
↓ 2 callersMethodupdate_dents_buf
(&self, buf: &mut [u8])
src/unix/linux/process.rs:509
↓ 2 callersMethodupdate_from
( &mut self, Component { inner: ComponentInner {
src/unix/linux/component.rs:103
↓ 2 callersFunctionupdate_proc_disk_activity
(p: &mut ProcessInner)
src/unix/apple/macos/process.rs:854
↓ 2 callersFunctionupdate_proc_info
( p: &mut ProcessInner, parent_pid: Option<Pid>, refresh_kind: ProcessRefreshKind, proc_dir: &
src/unix/linux/process.rs:1017
↓ 2 callersMethodusage
(&self)
src/unix/apple/gpu.rs:233
↓ 2 callersMethodusage
(&self)
src/unix/linux/cpu.rs:369
↓ 2 callersMethoduser_id
Returns the ID of the owner user of this process or `None` if this information couldn't be retrieved. If you want to get the [`User`] from it, take a
src/common/system.rs:2140
↓ 2 callersFunctionutf16_str
(text: &S)
src/windows/system.rs:558
↓ 2 callersMethodvendor_id
(&self)
src/windows/cpu.rs:312
↓ 2 callersMethodvendor_name
Returns the motherboard vendor name. This corresponds to the name of the motherboard's manufacturer (e.g. "LENOVO"). Important**: this information i
src/common/system.rs:1083
↓ 2 callersMethodversion
Returns the motherboard version. This corresponds to the version or model number assigned by the motherboard's manufacturer (e.g. "0B98401 Pro"). Thi
src/common/system.rs:1102
↓ 2 callersMethodvirtual_memory
Returns the virtual memory usage (in bytes). This method returns the [size of virtual memory], that is, the amount of memory that the process can acc
src/common/system.rs:1976
↓ 2 callersMethodvirtual_time
(&self)
src/unix/linux/cpu.rs:269
↓ 1 callersFunctionIOHIDEventFieldBase
(event_type: i64)
src/unix/apple/macos/ffi.rs:129
↓ 1 callersFunction_get_process_data
( path: &CStr, proc_list: &mut HashMap<Pid, Process>, pid: Pid, is_thread: bool, parent_pi
src/unix/linux/process.rs:1259
↓ 1 callersMethodaccount_name
(&self)
src/windows/sid.rs:62
↓ 1 callersFunctionadd_missing_proc_info
( system_info: &mut SystemInfo, kproc: &libc::kinfo_proc, proc_: &mut Process, refresh_kind: P
src/unix/bsd/freebsd/system.rs:370
↓ 1 callersFunctionadd_u32
(v: &mut Vec<u8>, i: u32)
src/windows/cpu.rs:379
↓ 1 callersFunctionadd_user
(result: *const c_void)
src/unix/apple/users.rs:85
↓ 1 callersMethodarc_size
(&self)
src/unix/bsd/freebsd/system.rs:442
↓ 1 callersMethodbar
(&self)
tests/system.rs:65
↓ 1 callersFunctionboot_time
Calculates system boot time in seconds with improved precision. Uses nanoseconds throughout to avoid rounding errors in uptime calculation, converting
src/windows/system.rs:60
↓ 1 callersMethodbrand
(&self)
src/unix/apple/cpu.rs:196
↓ 1 callersFunctionbuild_cpus_from_cpuinfo
( vendors_brands: HashMap<usize, (String, String)>, refresh_frequency: bool, )
src/unix/linux/cpu.rs:774
↓ 1 callersFunctionbuild_path
Writes `{base}/{file_name}` into `buf` and returns a reference to it.
src/unix/linux/process.rs:1617
↓ 1 callersFunctionc_buf_to_os_str
(buf: &[libc::c_char])
src/unix/bsd/freebsd/utils.rs:68
↓ 1 callersFunctionc_buf_to_os_str
(buf: &[libc::c_char])
src/unix/bsd/netbsd/utils.rs:58
↓ 1 callersFunctioncgroup_base_for_path
(cgroup_path: &Path, mounts: &[CGroupMount])
src/unix/linux/cgroup.rs:339
↓ 1 callersMethodcgroup_limits
Retrieves the limits for the root cgroup (if any), otherwise it returns `None`. This information is computed every time the method is called. ⚠️ Thi
src/common/system.rs:734
↓ 1 callersFunctioncheck_doc_comments_before
(p: &Path, lines: &[&str], start: usize)
tests/code_checkers/docs.rs:51
↓ 1 callersFunctioncheck_empty
(s: &System, pid: Pid)
tests/process.rs:784
↓ 1 callersFunctioncheck_if_pid_is_alive
(pid: Pid, check_if_alive: bool)
src/unix/apple/macos/process.rs:399
↓ 1 callersFunctioncheck_is_supported
(_: bool)
src/lib.rs:243
↓ 1 callersFunctioncheck_kill_decl
(lines: &mut impl Iterator<Item = &'a str>, p: &Path)
tests/code_checkers/signals.rs:23
↓ 1 callersFunctioncheck_md_doc_path
(p: &Path, md_line: &str, ty_line: &str)
tests/code_checkers/docs.rs:23
↓ 1 callersFunctioncheck_minimum_cpu_update_interval
(_: std::time::Duration)
src/lib.rs:253
↓ 1 callersFunctioncheck_supported_signals
(_: &'static [Signal])
src/lib.rs:252
↓ 1 callersFunctioncheck_supported_signals_decl
(lines: &mut impl Iterator<Item = &'a str>, p: &Path)
tests/code_checkers/signals.rs:6
↓ 1 callersFunctioncheck_tasks
examples/simple.c:26
↓ 1 callersMethodcmd
(&self)
src/unix/apple/macos/process.rs:150
↓ 1 callersMethodcmd
(&self)
src/unix/linux/process.rs:198
↓ 1 callersMethodcmd
Returns the command line. ⚠️ Important ⚠️ On **Windows**, you might need to use `administrator` privileges when running your program to have access
src/common/system.rs:1812
↓ 1 callersMethodcmp
(&self, other: &Self)
src/common/user.rs:41
↓ 1 callersMethodcmp
(&self, other: &Self)
src/common/gpu.rs:234
↓ 1 callersFunctioncompute_cpu_usage
Because of libc::mach_absolute_time.
src/unix/apple/macos/process.rs:331
↓ 1 callersFunctioncompute_cpu_usage
Before changing this function, you must consider the following: <https://github.com/GuillaumeGomez/sysinfo/issues/459>
src/windows/process.rs:1141
↓ 1 callersMethodcompute_cpu_usage
(&mut self)
src/unix/bsd/netbsd/cpu.rs:241
↓ 1 callersMethodcompute_gpu_usage
(&mut self, new_gpu_time: u64, new_instant: std::time::Instant)
src/unix/apple/macos/process.rs:315
↓ 1 callersFunctioncompute_start
(process_times: u64)
src/windows/process.rs:675
↓ 1 callersMethodconvert
(mut self)
src/unix/linux/cpu.rs:867
↓ 1 callersFunctionconvert_node_path_info
(node: &libc::vnode_info_path)
src/unix/apple/macos/process.rs:546
← previousnext →201–300 of 1,805, ranked by callers