AppDomain.MonitoringTotalProcessorTime Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the total processor time that has been used by all threads while executing in the current application domain, since the process started.
public:
property TimeSpan MonitoringTotalProcessorTime { TimeSpan get(); };
public TimeSpan MonitoringTotalProcessorTime { get; }
public TimeSpan MonitoringTotalProcessorTime { [System.Security.SecurityCritical] get; }
member this.MonitoringTotalProcessorTime : TimeSpan
[<get: System.Security.SecurityCritical>]
member this.MonitoringTotalProcessorTime : TimeSpan
Public ReadOnly Property MonitoringTotalProcessorTime As TimeSpan
Total processor time for the current application domain.
- Attributes
The static
(Shared
in Visual Basic) MonitoringIsEnabled property is set to false
.
The total time that is reported for an application domain includes the time each thread in the process spent executing in that application domain.
A thread that calls into unmanaged code is still associated with an application domain, and the processor time spent executing the unmanaged code is reported for the application domain where the call was made.
When a thread is blocked or sleeping, it does not consume processor time.
Продукт | Версии |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: