// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem;
usingSystem;
usingSystem.Diagnostics;
usingSystem.Diagnostics.Tracing;
usingSystem.Diagnostics.Tracing;
usingSystem.Threading;
usingSystem.Threading;
usingMicrosoft.CodeAnalysis.PooledObjects;
namespaceMicrosoft.CodeAnalysis.Internal.Log
namespaceMicrosoft.CodeAnalysis.Internal.Log
{
{
internalpartialclassRoslynEventSource
internalpartialclassRoslynEventSource
{
{
// Regardless of how many tasks we can run in parallel on the machine, we likely won't need more than 256
// instrumentation points in flight at a given time.
// Use an object pool since we may be logging up to 1-10k events/second