<appDomainResourceMonitoring> Element
Instructs the runtime to collect statistics on all application domains in the process for the life of the process.
<configuration>
<runtime>
<appDomainResourceMonitoring>
Syntax
<appDomainResourceMonitoring
enabled="true|false"/>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
enabled |
Required attribute. Specifies whether the runtime collects statistics for application domain resource monitoring. |
enabled Attribute
Value | Description |
---|---|
true |
Statistics for application domain resource monitoring are collected. |
false |
Statistics for application domain resource monitoring are not collected. |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
runtime |
Contains information about assembly binding and garbage collection. |
Remarks
Application domain resource monitoring is available through the managed application domain class, the hosting ICLRAppDomainResourceMonitor interface, and event tracing for Windows (ETW). When monitoring is enabled, statistics are collected for all application domains in the process for the life of the process.
To enable monitoring from managed code, use the MonitoringIsEnabled property.
This configuration element is available only in the .NET Framework 4 and later.
Example
The following example shows how to enable application domain resource monitoring.
<configuration>
<runtime>
<appDomainResourceMonitoring enabled="true"/>
</runtime>
</configuration>