EnvironmentStatistics
struct
Namespace: Orleans.Statistics
Contains statistics about the current process and its execution environment.
[Orleans.Immutable][Orleans.GenerateSerializer][Orleans.Alias(Orleans.Statistics.EnvironmentStatistics)]public readonly struct EnvironmentStatistics : IEquatable<EnvironmentStatistics>Properties
AvailableMemoryPercentageGets the percentage of available memory relative to currently used memory, clamped between 0 and 100.MemoryUsagePercentageGets the percentage of memory used relative to currently available memory, clamped between 0 and 100.NormalizedAvailableMemoryGets the normalized available memory (0.0 to 1.0).NormalizedFilteredAvailableMemoryGets the normalized filtered available memory (0.0 to 1.0).NormalizedFilteredMemoryUsageGets the normalized filtered memory usage (0.0 to 1.0).NormalizedMemoryUsageGets the normalized memory usage (0.0 to 1.0).
Methods
Equals(EnvironmentStatistics)Indicates whether the current object is equal to another object of the same type.Equals(object?)Indicates whether this instance and a specified object are equal.GetHashCodeReturns the hash code for this instance.ToStringReturns a string containing the CPU and memory statistics.operator ==(EnvironmentStatistics, EnvironmentStatistics)Determines whether two environment statistics snapshots are equal.operator !=(EnvironmentStatistics, EnvironmentStatistics)Determines whether two environment statistics snapshots are unequal.
Fields
FilteredAvailableMemoryBytesThe amount of memory currently available for allocations to the process. Applies Kalman filtering to smooth out short-term fluctuations. See https://en.wikipedia.org/wiki/Kalman_filter; https://www.ledjonbehluli.com/posts/orleans_resource_placement_kalman/FilteredCpuUsagePercentageThe system CPU usage. Applies Kalman filtering to smooth out short-term fluctuations. See https://en.wikipedia.org/wiki/Kalman_filter; https://www.ledjonbehluli.com/posts/orleans_resource_placement_kalman/FilteredMemoryUsageBytesThe amount of managed memory currently consumed by the process. Applies Kalman filtering to smooth out short-term fluctuations. See https://en.wikipedia.org/wiki/Kalman_filter; https://www.ledjonbehluli.com/posts/orleans_resource_placement_kalman/MaximumAvailableMemoryBytesThe maximum amount of memory available to the process.RawAvailableMemoryBytesThe amount of memory currently available for allocations to the process.RawCpuUsagePercentageThe system CPU usage.RawMemoryUsageBytesThe amount of managed memory currently consumed by the process.
