2
2
3
3
## Description
4
4
5
- This Julia package displays CPU and RAM usage information on your computer.
5
+ This Julia package displays CPU and RAM usage information on your computer. If necessary, one can show GPU usage.
6
+
7
+ ![ image] ( https://private-user-images.githubusercontent.com/16760547/385691047-695d64ab-62ba-417e-ac04-e168237b4957.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzE0OTA1ODcsIm5iZiI6MTczMTQ5MDI4NywicGF0aCI6Ii8xNjc2MDU0Ny8zODU2OTEwNDctNjk1ZDY0YWItNjJiYS00MTdlLWFjMDQtZTE2ODIzN2I0OTU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDExMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMTEzVDA5MzEyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA0MjNkZjJjODllZGMxMDMxNDAzZThjOTIyZTY1ZWRjMDVhNzBkNTIyMzY2NWEyNjAyMWE1ZTRkMWJiZGYxMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.4Up5YqmqTmzlQptiPnQhEpJqMys_eND9qajF_NttO7c )
6
8
7
9
## Installation
8
10
@@ -64,27 +66,29 @@ $ julia main.jl
64
66
You will see an output similar to this:
65
67
66
68
``` bash
67
- ──────────────────────╮╭──────────────────────╮
68
- │ ┌ ┐││ ┌ ┐│
69
- │id: 0┤■■■■ 37 ││id: 4┤■■ 23.2 │
70
- │id: 1┤ 0 ││id: 5┤ 0 │
71
- │id: 2┤■■■ 29 ││id: 6┤■ 15.2 │
72
- │id: 3┤ 0 ││id: 7┤ 1 │
73
- │ └ ┘││ └ ┘│
74
- ╰──────────────────────╯╰──────────────────────╯
75
69
╭───────────────────────╮╭───────────────────────╮
76
70
│ ┌ ┐││ ┌ ┐│
77
- │ id: 8┤■ 10.9 ││id: 12┤ 3 │
78
- │ id: 9┤ 0 ││id: 13┤ 0 │
79
- │id: 10┤■ 5.9 ││id: 14┤ 2 │
71
+ │id: 0┤■■■ 24 ││id: 4┤■ 10.1 │
72
+ │id: 1┤ 0 ││id: 5┤ 0 │
73
+ │id: 2┤■■ 13.9 ││id: 6┤■ 6 │
74
+ │id: 3┤ 0 ││id: 7┤ 0 │
75
+ │ └ ┘││ └ ┘│
76
+ ╰───────────────────────╯╰───────────────────────╯
77
+ ╭───────────────────────╮╭───────────────────────╮
78
+ │ ┌ ┐││ ┌ ┐│
79
+ │id: 8┤■ 6 ││id: 12┤ 3 │
80
+ │id: 9┤ 0 ││id: 13┤ 0 │
81
+ │id: 10┤■ 5 ││id: 14┤ 2 │
80
82
│id: 11┤ 0 ││id: 15┤ 0 │
81
83
│ └ ┘││ └ ┘│
82
84
╰───────────────────────╯╰───────────────────────╯
83
- ╭──────────────────────╮
84
- │ ┌ ┐│
85
- │Mem: ┤■■■■■■■■ 29.4 │
86
- │ └ ┘│
87
- ╰──────────────────────╯
85
+ ╭────────────────────────────────────────╮
86
+ │ ┌ ┐ │
87
+ │Mem: ┤■■■■■■ 58.859 64.0 GiB │
88
+ │ └ ┘ │
89
+ │ Load average: 1.81 2.4 2.73 │
90
+ │ Uptime: 0 days, 10:35:59 │
91
+ ╰────────────────────────────────────────╯
88
92
```
89
93
90
94
Alternatively, you can launch the functionality directly from Julia:
@@ -93,6 +97,15 @@ Alternatively, you can launch the functionality directly from Julia:
93
97
julia> using TerminalSystemMonitor: main; main ()
94
98
```
95
99
100
+ ### Monitoring GPU Usage
101
+
102
+ Please load ` CUDA.jl ` package in advance:
103
+
104
+ ``` julia
105
+ julia> using CUDA; using TerminalSystemMonitor: main; main ()
106
+ ```
107
+
108
+
96
109
## Why not ` htop ` ?
97
110
98
111
You might be familiar with the ` htop ` command, which provides similar functionality. You can use ` htop ` in Julia as follows:
0 commit comments