Skip to content

Commit

Permalink
Add DebuggerDisplay to Meter and Instruments (#91496)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobsaila authored Sep 26, 2023
1 parent ba52f9d commit f0c7534
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace System.Diagnostics.Metrics
/// <remarks>
/// This class supports only the following generic parameter types: <see cref="byte" />, <see cref="short" />, <see cref="int" />, <see cref="long" />, <see cref="float" />, <see cref="double" />, and <see cref="decimal" />
/// </remarks>
[DebuggerDisplay("Name = {Name}, Meter = {Meter.Name}")]
public abstract partial class Instrument<T> : Instrument where T : struct
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace System.Diagnostics.Metrics
/// <summary>
/// Meter is the class responsible for creating and tracking the Instruments.
/// </summary>
[DebuggerDisplay("Name = {Name}, Instruments = {_instruments.Count}")]
public class Meter : IDisposable
{
private static readonly List<Meter> s_allMeters = new List<Meter>();
Expand Down

0 comments on commit f0c7534

Please sign in to comment.