Skip to content

Commit 198ae58

Browse files
Update README.md
1 parent 0baad4c commit 198ae58

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

README.md

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
## Description
44

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)
68

79
## Installation
810

@@ -64,27 +66,29 @@ $ julia main.jl
6466
You will see an output similar to this:
6567

6668
```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-
╰──────────────────────╯╰──────────────────────╯
7569
╭───────────────────────╮╭───────────────────────╮
7670
│ ┌ ┐││ ┌ ┐│
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 │
8082
│id: 11┤ 0 ││id: 15┤ 0 │
8183
│ └ ┘││ └ ┘│
8284
╰───────────────────────╯╰───────────────────────╯
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+
╰────────────────────────────────────────╯
8892
```
8993

9094
Alternatively, you can launch the functionality directly from Julia:
@@ -93,6 +97,15 @@ Alternatively, you can launch the functionality directly from Julia:
9397
julia> using TerminalSystemMonitor: main; main()
9498
```
9599

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+
96109
## Why not `htop`?
97110

98111
You might be familiar with the `htop` command, which provides similar functionality. You can use `htop` in Julia as follows:

0 commit comments

Comments
 (0)