Skip to content

Commit

Permalink
disable reporting available physical and virtual memory under Mono (u…
Browse files Browse the repository at this point in the history
…nknown how to do that)
  • Loading branch information
fandrei committed Jun 28, 2013
1 parent 7fd6f45 commit 47e47e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions AppMetrics.Client/Tracker.cs
Expand Up @@ -387,8 +387,11 @@ private void ReportPeriodicInfo()

var computerInfo = new ComputerInfo();

Log("System_AvailablePhysicalMemory", ToMegabytes(computerInfo.AvailablePhysicalMemory));
Log("System_AvailableVirtualMemory", ToMegabytes(computerInfo.AvailableVirtualMemory));
if (!IsUnderMono)
{
Log("System_AvailablePhysicalMemory", ToMegabytes(computerInfo.AvailablePhysicalMemory));
Log("System_AvailableVirtualMemory", ToMegabytes(computerInfo.AvailableVirtualMemory));
}

var processorSecondsUsed = curProcess.TotalProcessorTime.TotalSeconds;
if (_lastProcessorTimeUsage != 0)
Expand Down

0 comments on commit 47e47e9

Please sign in to comment.