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
- 繼承
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| Snapshot(TimeSpan, TimeSpan, TimeSpan, UInt64) |
已淘汰.
初始化一個新的結構體實例 Snapshot 。 |
屬性
| 名稱 | Description |
|---|---|
| KernelTimeSinceStart |
已淘汰.
它會取得自啟動以來經過的核心時間。 |
| MemoryUsageInBytes |
已淘汰.
它會以位元組計算系統內的記憶體使用情況。 |
| TotalTimeSinceStart |
已淘汰.
會取得自啟動以來經過的總 CPU 時間。 |
| UserTimeSinceStart |
已淘汰.
會顯示自啟動以來已經過的使用者時間。 |