Snapshot 结构
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.
一段时间内定期使用的 CPU 和内存使用情况的快照。
public value class Snapshot
[System.Obsolete("This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.", DiagnosticId="EXTOBS0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public readonly struct Snapshot
public readonly struct Snapshot
[<System.Obsolete("This API is obsolete and will be removed in a future version. Consider using Resource Monitoring observable instruments.", DiagnosticId="EXTOBS0001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type Snapshot = struct
type Snapshot = struct
Public Structure Snapshot
- 继承
- 特性
构造函数
| 名称 | 说明 |
|---|---|
| Snapshot(TimeSpan, TimeSpan, TimeSpan, UInt64) |
已过时.
初始化 结构的新实例 Snapshot 。 |
属性
| 名称 | 说明 |
|---|---|
| KernelTimeSinceStart |
已过时.
获取自启动以来已用的内核时间量。 |
| MemoryUsageInBytes |
已过时.
获取系统中的内存使用情况(以字节为单位)。 |
| TotalTimeSinceStart |
已过时.
获取自启动以来已用的总 CPU 时间。 |
| UserTimeSinceStart |
已过时.
获取自启动以来已用过的用户时间量。 |