Skip to content

Commit

Permalink
Only take the top ten targets
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Nov 19, 2024
1 parent f0bc566 commit 9644574
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ void SendTelemetry()
object[][] targetDurations = _targetRecordById.Values
.Where(static record => record.Elapsed > new TimeSpan(ticks: 5 * TimeSpan.TicksPerMillisecond))
.OrderByDescending(record => record.Elapsed)
.Take(10)
.Select(record => new object[] { GetHashedTargetName(record), record.Elapsed.Milliseconds })
.ToArray();

Expand Down

0 comments on commit 9644574

Please sign in to comment.