Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomi7732 committed Dec 10, 2024
1 parent a71ff2e commit f10c75d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public MemInfoFileMemoryMetricsProvider(
}

/// <summary>
/// Get the memory usage in percentage. 25.5 for 25.5%.
/// Get the memory usage in percentage.
/// </summary>
/// <returns></returns>
/// <returns>Returns the memory usages in form of 100 x percentage. For example, 25.5 for 25.5%.</returns>
public float GetNextValue()
{
(float total, float free) = GetMetrics();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ namespace Microsoft.ApplicationInsights.Profiler.Shared.Orchestrations;

internal sealed class ResourceUsageSource : IResourceUsageSource
{
private readonly BaselineTracker? _cpuBaselineTracker;
private readonly BaselineTracker? _memoryBaselineTracker;
private float _currentCPUBaseline = 0f;
private float _currentMemoryBaseline = 0f;
private bool _disposed = false;

private readonly BaselineTracker? _cpuBaselineTracker;
private readonly BaselineTracker? _memoryBaselineTracker;
private readonly UserConfigurationBase _userConfigurations;
private readonly ILogger _logger;
private bool _disposed = false;

///<summary>
/// Aggregates CPU and RAM usage in recent times.
Expand Down

0 comments on commit f10c75d

Please sign in to comment.