WebProcessStatistics.PeakWorkingSet 属性

定义

获取目前为止进程生存期的峰值工作集。

public:
 property long PeakWorkingSet { long get(); };
public long PeakWorkingSet { get; }
member this.PeakWorkingSet : int64
Public ReadOnly Property PeakWorkingSet As Long

属性值

进程的峰值工作集。

示例

下面的代码示例演示如何获取 PeakWorkingSet 值。

public string GetPeakWorkingSet()
{
    // Get the peak working set.
    return (string.Format(
        "Peak working set: {0}",
        processStatistics.PeakWorkingSet.ToString()));
}
Public Function GetPeakWorkingSet() As String
    ' Get the peak working set.
    Return String.Format( _
    "Peak working set: {0}", _
    processStatistics.PeakWorkingSet.ToString())
End Function 'GetPeakWorkingSet

适用于