Class Memory
Utility functions to report memory usage.
Inherited Members
Namespace: NetTopologySuite.Utilities
Assembly: NetTopologySuite.dll
Syntax
public class Memory
Fields
| Improve this Doc View SourceGB
Number of bytes in a giga-byte
Declaration
public const double GB = 1073741824
Field Value
Type | Description |
---|---|
Double |
KB
Number of bytes in a kilo-byte
Declaration
public const double KB = 1024
Field Value
Type | Description |
---|---|
Double |
MB
Number of bytes in mega-byte
Declaration
public const double MB = 1048576
Field Value
Type | Description |
---|---|
Double |
Properties
| Improve this Doc View SourceTotal
Gets a value indicating the total memory used.
Declaration
public static long Total { get; }
Property Value
Type | Description |
---|---|
Int64 |
TotalString
Gets a string describing the total memory used
Declaration
public static string TotalString { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceFormat(Int64)
Formats a number of bytes
Declaration
public static string Format(long mem)
Parameters
Type | Name | Description |
---|---|---|
Int64 | mem | The number of bytes |
Returns
Type | Description |
---|---|
String | A string describing a number of bytes |
Round(Double)
Rounds a double to 2 decimal places
Declaration
public static double Round(double d)
Parameters
Type | Name | Description |
---|---|---|
Double | d | The number to round |
Returns
Type | Description |
---|---|
Double | The rounded number |