We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cea90 commit feec02dCopy full SHA for feec02d
+stdlib/+dotnet/ram_total.m
@@ -3,11 +3,11 @@
3
function bytes = ram_total()
4
% .NET is 2-3x faster than Java for this
5
% https://learn.microsoft.com/en-us/dotnet/api/system.gcmemoryinfo.totalavailablememorybytes
6
- try
7
- bytes = System.GC.GetGCMemoryInfo().TotalAvailableMemoryBytes;
8
- catch
9
- bytes = [];
10
- end
+try
+ bytes = System.GC.GetGCMemoryInfo().TotalAvailableMemoryBytes;
+catch
+ bytes = [];
+end
11
12
- bytes = uint64(bytes);
+bytes = uint64(bytes);
13
end
0 commit comments