Skip to content

Commit 9ca9d6d

Browse files
[xabt] rename $(EnableProfiler) to $(EnableDiagnostics) (#10166)
Context: dotnet/macios#22982 Context: dotnet/runtime#115473 (comment) We are aligning WASM, iOS, Android to all use the same property name for this.
1 parent 3394bc5 commit 9ca9d6d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Documentation/docs-mobile/building-apps/build-properties.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ This property is `False` by default.
397397

398398
## AndroidEnableProfiler
399399

400-
Synonym for the [`$(EnableProfiler)`](#enableprofiler) property.
400+
Synonym for the [`$(EnableDiagnostics)`](#enablediagnostics) property.
401401

402402
Required for using `dotnet-trace` or `dotnet-gcdump` in Android
403403
applications. If set to `true`, it includes the Mono diagnostic
@@ -1551,6 +1551,18 @@ MSBuild property also controls what
15511551
will be embedded into the `.apk`, which can impact deployment and
15521552
rebuild times.
15531553

1554+
## EnableDiagnostics
1555+
1556+
Synonym for the [`$(AndroidEnableProfiler)`](#androidenableprofiler)
1557+
property.
1558+
1559+
Required for using `dotnet-trace` or `dotnet-gcdump` in Android
1560+
applications. If set to `true`, it includes the Mono diagnostic
1561+
component in the application. This component is the
1562+
`libmono-component-diagnostics_tracing.so` native library.
1563+
1564+
This property is `False` by default.
1565+
15541566
## EnableLLVM
15551567

15561568
A boolean property that determines whether
@@ -1565,18 +1577,6 @@ This property is `False` by default.
15651577
This property is ignored unless the
15661578
[`$(AotAssemblies)`](#aotassemblies) MSBuild property is `True`.
15671579

1568-
## EnableProfiler
1569-
1570-
Synonym for the [`$(AndroidEnableProfiler)`](#androidenableprofiler)
1571-
property.
1572-
1573-
Required for using `dotnet-trace` or `dotnet-gcdump` in Android
1574-
applications. If set to `true`, it includes the Mono diagnostic
1575-
component in the application. This component is the
1576-
`libmono-component-diagnostics_tracing.so` native library.
1577-
1578-
This property is `False` by default.
1579-
15801580
## EnableProguard
15811581

15821582
A boolean property that determines

src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<AndroidEnableRestrictToAttributes Condition=" '$(AndroidEnableRestrictToAttributes)' == '' ">obsolete</AndroidEnableRestrictToAttributes>
4444

4545
<!-- Mono components -->
46-
<AndroidEnableProfiler Condition=" '$(AndroidEnableProfiler)' == ''">$(EnableProfiler)</AndroidEnableProfiler>
46+
<AndroidEnableProfiler Condition=" '$(AndroidEnableProfiler)' == ''">$(EnableDiagnostics)</AndroidEnableProfiler>
4747
<AndroidEnableProfiler Condition=" '$(AndroidEnableProfiler)' == ''">false</AndroidEnableProfiler>
4848

4949
<!--

0 commit comments

Comments
 (0)