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

Commit 5c9febf

Browse files
marek-safarjkotas
authored andcommitted
Move TplEtwProvider to shared partition (#22120)
1 parent edffbd9 commit 5c9febf

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

src/System.Private.CoreLib/System.Private.CoreLib.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@
279279
<Compile Include="$(BclSourcesRoot)\System\Threading\SynchronizationContext.cs" />
280280
<Compile Include="$(BclSourcesRoot)\System\Threading\Tasks\Task.cs" />
281281
<Compile Include="$(BclSourcesRoot)\System\Threading\Tasks\TaskContinuation.cs" />
282-
<Compile Include="$(BclSourcesRoot)\System\Threading\Tasks\TPLETWProvider.cs" />
283282
<Compile Include="$(BclSourcesRoot)\System\Threading\Thread.cs" />
284283
<Compile Include="$(BclSourcesRoot)\System\Threading\ThreadPool.cs" />
285284
<Compile Include="$(BclSourcesRoot)\System\Threading\Timer.cs" />

src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@
788788
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskScheduler.cs" />
789789
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TaskSchedulerException.cs" />
790790
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ThreadPoolTaskScheduler.cs" />
791+
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\TplEtwProvider.cs" />
791792
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\ValueTask.cs" />
792793
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs" />
793794
<Compile Include="$(MSBuildThisFileDirectory)System\Threading\Tasks\Sources\IValueTaskSource.cs" />

src/System.Private.CoreLib/src/System/Threading/Tasks/TPLETWProvider.cs renamed to src/System.Private.CoreLib/shared/System/Threading/Tasks/TplEtwProvider.cs

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,20 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
6-
//
7-
//
8-
//
9-
// EventSource for TPL.
10-
//
11-
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
12-
13-
using System;
14-
using System.Collections.Generic;
15-
using System.Text;
16-
using System.Security;
175
using System.Runtime.CompilerServices;
186
using System.Diagnostics.Tracing;
19-
207
using Internal.Runtime.CompilerServices;
218

229
namespace System.Threading.Tasks
2310
{
2411
/// <summary>Provides an event source for tracing TPL information.</summary>
2512
[EventSource(
2613
Name = "System.Threading.Tasks.TplEventSource",
27-
Guid = "2e5dba47-a3d2-4d16-8ee0-6671ffdcd7b5",
28-
LocalizationResources = "FxResources.System.Private.CoreLib.SR")]
14+
Guid = "2e5dba47-a3d2-4d16-8ee0-6671ffdcd7b5"
15+
#if CORECLR
16+
,LocalizationResources = "FxResources.System.Private.CoreLib.SR"
17+
#endif
18+
)]
2919
internal sealed class TplEtwProvider : EventSource
3020
{
3121
/// Used to determine if tasks should generate Activity IDs for themselves

0 commit comments

Comments
 (0)