module Psutil::Linux
Extended Modules
Defined in:
linux/cpu.crlinux/disk.cr
linux/disk_common_types.cr
linux/host.cr
linux/load.cr
linux/memory.cr
linux/net.cr
Constant Summary
-
CPU_TICK =
100_f64
-
DISK_SECTOR_SIZE =
512
-
FS_TYPES_MAP =
{S_MAGIC_AAFS => "aafs", S_MAGIC_ACFS => "acfs", S_MAGIC_ADFS => "adfs", S_MAGIC_AFFS => "affs", S_MAGIC_AFS => "afs", S_MAGIC_ANON_INODE_FS => "anon-inode FS", S_MAGIC_AUFS => "aufs", S_MAGIC_AUTOFS => "autofs", S_MAGIC_BALLOON_KVM => "balloon-kvm-fs", S_MAGIC_BEFS => "befs", S_MAGIC_BDEVFS => "bdevfs", S_MAGIC_BFS => "bfs", S_MAGIC_BINDERFS => "binderfs", S_MAGIC_BPF_FS => "bpf_fs", S_MAGIC_BINFMTFS => "binfmt_misc", S_MAGIC_BTRFS => "btrfs", S_MAGIC_BTRFS_TEST => "btrfs_test", S_MAGIC_CEPH => "ceph", S_MAGIC_CGROUP => "cgroupfs", S_MAGIC_CGROUP2 => "cgroup2fs", S_MAGIC_CIFS => "cifs", S_MAGIC_CODA => "coda", S_MAGIC_COH => "coh", S_MAGIC_CONFIGFS => "configfs", S_MAGIC_CRAMFS => "cramfs", S_MAGIC_CRAMFS_WEND => "cramfs-wend", S_MAGIC_DAXFS => "daxfs", S_MAGIC_DEBUGFS => "debugfs", S_MAGIC_DEVFS => "devfs", S_MAGIC_DEVMEM => "devmem", S_MAGIC_DEVPTS => "devpts", S_MAGIC_DMA_BUF => "dma-buf-fs", S_MAGIC_ECRYPTFS => "ecryptfs", S_MAGIC_EFIVARFS => "efivarfs", S_MAGIC_EFS => "efs", S_MAGIC_EROFS_V1 => "erofs", S_MAGIC_EXFAT => "exfat", S_MAGIC_EXFS => "exfs", S_MAGIC_EXOFS => "exofs", S_MAGIC_EXT => "ext", S_MAGIC_EXT2 => "ext2/ext3", S_MAGIC_EXT2_OLD => "ext2", S_MAGIC_F2FS => "f2fs", S_MAGIC_FAT => "fat", S_MAGIC_FHGFS => "fhgfs", S_MAGIC_FUSEBLK => "fuseblk", S_MAGIC_FUSECTL => "fusectl", S_MAGIC_FUTEXFS => "futexfs", S_MAGIC_GFS => "gfs/gfs2", S_MAGIC_GPFS => "gpfs", S_MAGIC_HFS => "hfs", S_MAGIC_HFS_PLUS => "hfs+", S_MAGIC_HFS_X => "hfsx", S_MAGIC_HOSTFS => "hostfs", S_MAGIC_HPFS => "hpfs", S_MAGIC_HUGETLBFS => "hugetlbfs", S_MAGIC_MTD_INODE_FS => "inodefs", S_MAGIC_IBRIX => "ibrix", S_MAGIC_INOTIFYFS => "inotifyfs", S_MAGIC_ISOFS => "isofs", S_MAGIC_ISOFS_R_WIN => "isofs", S_MAGIC_ISOFS_WIN => "isofs", S_MAGIC_JFFS => "jffs", S_MAGIC_JFFS2 => "jffs2", S_MAGIC_JFS => "jfs", S_MAGIC_KAFS => "k-afs", S_MAGIC_LOGFS => "logfs", S_MAGIC_LUSTRE => "lustre", S_MAGIC_M1FS => "m1fs", S_MAGIC_MINIX => "minix", S_MAGIC_MINIX_30 => "minix (30 char.)", S_MAGIC_MINIX_V2 => "minix v2", S_MAGIC_MINIX_V2_30 => "minix v2 (30 char.)", S_MAGIC_MINIX_V3 => "minix3", S_MAGIC_MQUEUE => "mqueue", S_MAGIC_MSDOS => "msdos", S_MAGIC_NCP => "novell", S_MAGIC_NFS => "nfs", S_MAGIC_NFSD => "nfsd", S_MAGIC_NILFS => "nilfs", S_MAGIC_NSFS => "nsfs", S_MAGIC_NTFS => "ntfs", S_MAGIC_OPENPROM => "openprom", S_MAGIC_OCFS2 => "ocfs2", S_MAGIC_OVERLAYFS => "overlayfs", S_MAGIC_PANFS => "panfs", S_MAGIC_PIPEFS => "pipefs", S_MAGIC_PPC_CMM => "ppc-cmm-fs", S_MAGIC_PRL_FS => "prl_fs", S_MAGIC_PROC => "proc", S_MAGIC_PSTOREFS => "pstorefs", S_MAGIC_QNX4 => "qnx4", S_MAGIC_QNX6 => "qnx6", S_MAGIC_RAMFS => "ramfs", S_MAGIC_RDTGROUP => "rdt", S_MAGIC_REISERFS => "reiserfs", S_MAGIC_ROMFS => "romfs", S_MAGIC_RPC_PIPEFS => "rpc_pipefs", S_MAGIC_SDCARDFS => "sdcardfs", S_MAGIC_SECRETMEM => "secretmem", S_MAGIC_SECURITYFS => "securityfs", S_MAGIC_SELINUX => "selinux", S_MAGIC_SMACK => "smackfs", S_MAGIC_SMB => "smb", S_MAGIC_SMB2 => "smb2", S_MAGIC_SNFS => "snfs", S_MAGIC_SOCKFS => "sockfs", S_MAGIC_SQUASHFS => "squashfs", S_MAGIC_SYSFS => "sysfs", S_MAGIC_SYSV2 => "sysv2", S_MAGIC_SYSV4 => "sysv4", S_MAGIC_TMPFS => "tmpfs", S_MAGIC_TRACEFS => "tracefs", S_MAGIC_UBIFS => "ubifs", S_MAGIC_UDF => "udf", S_MAGIC_UFS => "ufs", S_MAGIC_UFS_BYTESWAPPED => "ufs", S_MAGIC_USBDEVFS => "usbdevfs", S_MAGIC_V9FS => "v9fs", S_MAGIC_VBOXSF => "vboxsf", S_MAGIC_VMHGFS => "vmhgfs", S_MAGIC_VXFS => "vxfs", S_MAGIC_VZFS => "vzfs", S_MAGIC_WSLFS => "wslfs", S_MAGIC_XENFS => "xenfs", S_MAGIC_XENIX => "xenix", S_MAGIC_XFS => "xfs", S_MAGIC_XIAFS => "xia", S_MAGIC_Z3FOLD => "z3fold", S_MAGIC_ZFS => "zfs", S_MAGIC_ZONEFS => "zonefs", S_MAGIC_ZSMALLOC => "zsmallocfs"}
-
S_MAGIC_AAFS =
1513908720
-
S_MAGIC_ACFS =
1633904243
-
S_MAGIC_ADFS =
44533
-
S_MAGIC_AFFS =
44543
-
S_MAGIC_AFS =
1397113167
-
S_MAGIC_ANON_INODE_FS =
151263540
-
S_MAGIC_AUFS =
1635083891
-
S_MAGIC_AUTOFS =
391
-
S_MAGIC_BALLOON_KVM =
325456742
-
S_MAGIC_BDEVFS =
1650746742
-
S_MAGIC_BEFS =
1111905073
-
S_MAGIC_BFS =
464386766
-
S_MAGIC_BINDERFS =
1819242352
-
S_MAGIC_BINFMTFS =
1112100429
-
S_MAGIC_BPF_FS =
3405662737_i64
-
S_MAGIC_BTRFS =
2435016766_i64
-
S_MAGIC_BTRFS_TEST =
1936880249
-
S_MAGIC_CEPH =
12805120
-
S_MAGIC_CGROUP =
2613483
-
S_MAGIC_CGROUP2 =
1667723888
-
S_MAGIC_CIFS =
4283649346_i64
-
S_MAGIC_CODA =
1937076805
-
S_MAGIC_COH =
19920823
-
S_MAGIC_CONFIGFS =
1650812272
-
S_MAGIC_CRAMFS =
684539205
-
S_MAGIC_CRAMFS_WEND =
1161678120
-
S_MAGIC_DAXFS =
1684300152
-
S_MAGIC_DEBUGFS =
1684170528
-
S_MAGIC_DEVFS =
4979
-
S_MAGIC_DEVMEM =
1162691661
-
S_MAGIC_DEVPTS =
7377
-
S_MAGIC_DMA_BUF =
1145913666
-
S_MAGIC_ECRYPTFS =
61791
-
S_MAGIC_EFIVARFS =
3730735588_i64
-
S_MAGIC_EFS =
4278867
-
S_MAGIC_EROFS_V1 =
3774210530_i64
-
S_MAGIC_EXFAT =
538032816
-
S_MAGIC_EXFS =
1163413075
-
S_MAGIC_EXOFS =
24053
-
S_MAGIC_EXT =
4989
-
S_MAGIC_EXT2 =
61267
-
S_MAGIC_EXT2_OLD =
61265
-
S_MAGIC_F2FS =
4076150800_i64
-
S_MAGIC_FAT =
16390
-
S_MAGIC_FHGFS =
428016422
-
S_MAGIC_FUSEBLK =
1702057286
-
S_MAGIC_FUSECTL =
1702057283
-
S_MAGIC_FUTEXFS =
195894762
-
S_MAGIC_GFS =
18225520
-
S_MAGIC_GPFS =
1196443219
-
S_MAGIC_HFS =
16964
-
S_MAGIC_HFS_PLUS =
18475
-
S_MAGIC_HFS_X =
18520
-
S_MAGIC_HOSTFS =
12648430
-
S_MAGIC_HPFS =
4187351113_i64
-
S_MAGIC_HUGETLBFS =
2508478710_i64
-
S_MAGIC_IBRIX =
19993000
-
S_MAGIC_INOTIFYFS =
732765674
-
S_MAGIC_ISOFS =
38496
-
S_MAGIC_ISOFS_R_WIN =
16388
-
S_MAGIC_ISOFS_WIN =
16384
-
S_MAGIC_JFFS =
1984
-
S_MAGIC_JFFS2 =
29366
-
S_MAGIC_JFS =
827541066
-
S_MAGIC_KAFS =
1799439955
-
S_MAGIC_LOGFS =
3380511080_i64
-
S_MAGIC_LUSTRE =
198183888
-
S_MAGIC_M1FS =
1397109069
-
S_MAGIC_MINIX =
4991
-
S_MAGIC_MINIX_30 =
5007
-
S_MAGIC_MINIX_V2 =
9320
-
S_MAGIC_MINIX_V2_30 =
9336
-
S_MAGIC_MINIX_V3 =
19802
-
S_MAGIC_MQUEUE =
427819522
-
S_MAGIC_MSDOS =
19780
-
S_MAGIC_MTD_INODE_FS =
288389204
-
S_MAGIC_NCP =
22092
-
S_MAGIC_NFS =
26985
-
S_MAGIC_NFSD =
1852207972
-
S_MAGIC_NILFS =
13364
-
S_MAGIC_NSFS =
1853056627
-
S_MAGIC_NTFS =
1397118030
-
S_MAGIC_OCFS2 =
1952539503
-
S_MAGIC_OPENPROM =
40865
-
S_MAGIC_OVERLAYFS =
2035054128
-
S_MAGIC_PANFS =
2866260714_i64
-
S_MAGIC_PIPEFS =
1346981957
-
S_MAGIC_PPC_CMM =
3344373136_i64
-
S_MAGIC_PRL_FS =
2088527475
-
S_MAGIC_PROC =
40864
-
S_MAGIC_PSTOREFS =
1634035564
-
S_MAGIC_QNX4 =
47
-
S_MAGIC_QNX6 =
1746473250
-
S_MAGIC_RAMFS =
2240043254_i64
-
S_MAGIC_RDTGROUP =
124082209
-
S_MAGIC_REISERFS =
1382369651
-
S_MAGIC_ROMFS =
29301
-
S_MAGIC_RPC_PIPEFS =
1733912937
-
S_MAGIC_SDCARDFS =
1573531125
-
S_MAGIC_SECRETMEM =
1397048141
-
S_MAGIC_SECURITYFS =
1935894131
-
S_MAGIC_SELINUX =
4185718668_i64
-
S_MAGIC_SMACK =
1128357203
-
S_MAGIC_SMB =
20859
-
S_MAGIC_SMB2 =
4266872130_i64
-
S_MAGIC_SNFS =
3203391149_i64
-
S_MAGIC_SOCKFS =
1397703499
-
S_MAGIC_SQUASHFS =
1936814952
-
S_MAGIC_SYSFS =
1650812274
-
S_MAGIC_SYSV2 =
19920822
-
S_MAGIC_SYSV4 =
19920821
-
S_MAGIC_TMPFS =
16914836
-
S_MAGIC_TRACEFS =
1953653091
-
S_MAGIC_UBIFS =
604313861
-
S_MAGIC_UDF =
352400198
-
S_MAGIC_UFS =
72020
-
S_MAGIC_UFS_BYTESWAPPED =
1410924800
-
S_MAGIC_USBDEVFS =
40866
-
S_MAGIC_V9FS =
16914839
-
S_MAGIC_VBOXSF =
2020557398
-
S_MAGIC_VMHGFS =
3133910204_i64
-
S_MAGIC_VXFS =
2768370933_i64
-
S_MAGIC_VZFS =
1448756819
-
S_MAGIC_WSLFS =
1397114950
-
S_MAGIC_XENFS =
2881100148_i64
-
S_MAGIC_XENIX =
19920820
-
S_MAGIC_XFS =
1481003842
-
S_MAGIC_XIAFS =
19911021
-
S_MAGIC_Z3FOLD =
51
-
S_MAGIC_ZFS =
801189825
-
S_MAGIC_ZONEFS =
1515144787
-
S_MAGIC_ZSMALLOC =
1479104553
Instance Method Summary
- #cpu_times(per_cpu = true)
- #disk_io_counters
- #disk_partitions(all = false)
- #disk_usage(path = "/")
- #host_info
- #load_avg
- #net_io_counters(all = true)
- #virtual_memory