Skip to content

Commit 2fb45a4

Browse files
[XABT] introduce $(EnableProfiler) property
Context: dotnet/macios#22685 Context: dotnet/macios#19370 To simplify inclusion of the Mono diagnostics component, the iOS/macOS/etc. workloads are introducing a new `$(EnableProfiler)` property. To align with Android, we can make `$(EnableProfiler)` available and work the same way as the existing `$(AndroidEnableProfiler)` property. I documented `$(AndroidEnableProfiler)` (which was missing!), and also added an entry about the new, `$(EnableProfiler)` property.
1 parent f2eea99 commit 2fb45a4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,15 @@ final `.apk`.
398398

399399
This property is `False` by default.
400400

401+
## AndroidEnableProfiler
402+
403+
Required for using `dotnet-trace` or `dotnet-gcdump` in Android
404+
applications. If set to `true`, it includes the Mono diagnostic
405+
component in the application. This component is the
406+
`libmono-component-diagnostics_tracing.so` native library.
407+
408+
This property is `False` by default.
409+
401410
## AndroidEnableObsoleteOverrideInheritance
402411

403412
A boolean property that determines if bound methods automatically inherit `[Obsolete]`
@@ -1548,6 +1557,18 @@ This property is `False` by default.
15481557
This property is ignored unless the
15491558
[`$(AotAssemblies)`](#aotassemblies) MSBuild property is `True`.
15501559

1560+
## EnableProfiler
1561+
1562+
Synonym for the [`$(AndroidEnableProfiler)`](#androidenableprofiler)
1563+
property.
1564+
1565+
Required for using `dotnet-trace` or `dotnet-gcdump` in Android
1566+
applications. If set to `true`, it includes the Mono diagnostic
1567+
component in the application. This component is the
1568+
`libmono-component-diagnostics_tracing.so` native library.
1569+
1570+
This property is `False` by default.
1571+
15511572
## EnableProguard
15521573

15531574
A boolean property that determines

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<AndroidEnableRestrictToAttributes Condition=" '$(AndroidEnableRestrictToAttributes)' == '' ">obsolete</AndroidEnableRestrictToAttributes>
5353

5454
<!-- Mono components -->
55+
<AndroidEnableProfiler Condition=" '$(AndroidEnableProfiler)' == ''">$(EnableProfiler)</AndroidEnableProfiler>
5556
<AndroidEnableProfiler Condition=" '$(AndroidEnableProfiler)' == ''">false</AndroidEnableProfiler>
5657

5758
<!--

0 commit comments

Comments
 (0)