We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 023c8e4 + 27cc988 commit 86fcbc7Copy full SHA for 86fcbc7
base/sysinfo.jl
@@ -234,7 +234,18 @@ function loadavg()
234
return loadavg_
235
end
236
237
+"""
238
+ Sys.free_memory()
239
+
240
+Get the total free memory in RAM in kilobytes.
241
242
free_memory() = ccall(:uv_get_free_memory, UInt64, ())
243
244
245
+ Sys.total_memory()
246
247
+Get the total memory in RAM (including that which is currently used) in kilobytes.
248
249
total_memory() = ccall(:uv_get_total_memory, UInt64, ())
250
251
"""
doc/src/base/base.md
@@ -306,6 +306,8 @@ Base.Sys.isnetbsd
306
Base.Sys.isdragonfly
307
Base.Sys.iswindows
308
Base.Sys.windows_version
309
+Base.Sys.free_memory
310
+Base.Sys.total_memory
311
Base.@static
312
```
313
0 commit comments