Skip to content

Commit fc26f0d

Browse files
define monitor
1 parent 601b1b8 commit fc26f0d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/TerminalSystemMonitor.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ using UnicodePlots
55
import Term # this is required by UnicodePlots.panel
66
using MLDataDevices: MLDataDevices, CUDADevice
77

8+
export monitor # entrypoint from REPL
9+
810
# These function will be defined in Package extensions
911
function plot_gpu_utilization_rates end
1012
function plot_gpu_memory_utilization end
@@ -129,6 +131,10 @@ function plot_cpu_memory_utilization()
129131

130132
end
131133

134+
function monitor(args...)
135+
main(args...)
136+
end
137+
132138
function main(dummyargs...)
133139
hidecursor()
134140

0 commit comments

Comments
 (0)