Skip to content

Commit e275bed

Browse files
committed
wip
1 parent 1b2ea6f commit e275bed

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<ILLinkDescriptorsXmls Include="$(ILLinkDirectory)ILLink.Descriptors.xml" />
134134
<ILLinkDescriptorsXmls Include="$(ILLinkDirectory)ILLink.Descriptors.OSX.xml" Condition="'$(TargetsOSX)' == 'true' or '$(TargetsMacCatalyst)' == 'true' or '$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true'" />
135135
<ILLinkDescriptorsXmls Include="$(CoreLibSharedDir)ILLink\ILLink.Descriptors.Shared.xml" />
136-
<ILLinkDescriptorsXmls Condition="'$(FeaturePerfTracing)' == 'true'" Include="$(CoreLibSharedDir)ILLink\ILLink.Descriptors.EventSource.xml" />
136+
<ILLinkDescriptorsLibraryBuildXml Condition="'$(FeaturePerfTracing)' == 'true'" Include="$(CoreLibSharedDir)ILLink\ILLink.Descriptors.EventSource.xml" />
137137

138138
<ILLinkSubstitutionsXmls Include="$(ILLinkDirectory)ILLink.Substitutions.$(Platform).xml" Condition="Exists('$(ILLinkDirectory)ILLink.Substitutions.$(Platform).xml')" />
139139
<ILLinkSubstitutionsXmls Include="$(ILLinkDirectory)ILLink.Substitutions.iOS.xml" Condition="'$(TargetsiOS)' == 'true' or '$(TargetstvOS)' == 'true'" />

src/mono/mono/eventpipe/ep-rt-mono.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ ep_rt_mono_init_finish (void)
821821
// Managed init of diagnostics classes, like registration of RuntimeEventSource (if available).
822822
ERROR_DECL (error);
823823

824+
// TODO
824825
MonoClass *event_source = mono_class_from_name_checked (mono_get_corlib (), "System.Diagnostics.Tracing", "EventSource", error);
825826
if (is_ok (error) && event_source) {
826827
MonoMethod *init = mono_class_get_method_from_name_checked (event_source, "InitializeDefaultEventSources", -1, 0, error);

src/mono/sample/wasm/browser/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public partial class Test
1313
public static int Main(string[] args)
1414
{
1515
DisplayMeaning(42);
16-
SayHi();
16+
// SayHi();
1717
return 0;
1818
}
1919

@@ -33,6 +33,8 @@ internal static void SayHi()
3333
}
3434
}
3535

36+
37+
3638
[EventSource(Name = "WasmHello")]
3739
public class WasmHelloEventSource : EventSource
3840
{

src/mono/sample/wasm/browser/Wasm.Browser.Sample.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<PropertyGroup>
44
<WasmBuildNative>true</WasmBuildNative>
55
<EventSourceSupport>true</EventSourceSupport>
6+
<EnableAggressiveTrimming>false</EnableAggressiveTrimming>
7+
<PublishTrimmed>false</PublishTrimmed>
68
</PropertyGroup>
79
<ItemGroup>
810
<WasmExtraFilesToDeploy Include="main.js" />

0 commit comments

Comments
 (0)