Skip to content

Commit

Permalink
Update Backtrace/Model/JsonData/BacktraceAttributes.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Alex <[email protected]>
  • Loading branch information
timmac-qmc and perf2711 authored Sep 10, 2024
1 parent bbd4db3 commit d7a8158
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Backtrace/Model/JsonData/BacktraceAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,14 @@ private void SetProcessAttributes()
{
Attributes["process.age"] = totalProcessAge;
}
}
catch (NotSupportedException)
{
Trace.TraceWarning($"Cannot retrieve process age - TotalProcessorTime is not supported");
}

try
{
Attributes["cpu.process.count"] = Process.GetProcesses().Count();

//Resident memory usage.
Expand Down

0 comments on commit d7a8158

Please sign in to comment.