Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 0f39bc8

Browse files
benaadamsstephentoub
authored andcommitted
Use EventSource guid ctor for ArrayPoolEventSource (#16054)
* Use EventSource guid ctor for ArrayPoolEventSource * missing e
1 parent 0f3e829 commit 0f39bc8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/mscorlib/shared/System/Buffers/ArrayPoolEventSource.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace System.Buffers
88
{
9-
[EventSource(Name = "System.Buffers.ArrayPoolEventSource")]
9+
[EventSource(Guid = "0866B2B8-5CEF-5DB9-2612-0C0FFD814A44", Name = "System.Buffers.ArrayPoolEventSource")]
1010
internal sealed class ArrayPoolEventSource : EventSource
1111
{
1212
internal readonly static ArrayPoolEventSource Log = new ArrayPoolEventSource();
@@ -22,6 +22,9 @@ internal enum BufferAllocatedReason : int
2222
PoolExhausted
2323
}
2424

25+
// The ArrayPoolEventSource GUID is {0866b2b8-5cef-5db9-2612-0c0ffd814a44}
26+
private ArrayPoolEventSource() : base(new Guid(0x0866b2b8, 0x5cef, 0x5db9, 0x26, 0x12, 0x0c, 0x0f, 0xfd, 0x81, 0x4a, 0x44), "System.Buffers.ArrayPoolEventSource") { }
27+
2528
/// <summary>
2629
/// Event for when a buffer is rented. This is invoked once for every successful call to Rent,
2730
/// regardless of whether a buffer is allocated or a buffer is taken from the pool. In a

0 commit comments

Comments
 (0)