SPWebService.CollectSPRequestAllocationCallStacks property
如果為 true,則系統會收集的每個 SPRequest 配置 callstack。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property CollectSPRequestAllocationCallStacks As Boolean
Get
Set
'用途
Dim instance As SPWebService
Dim value As Boolean
value = instance.CollectSPRequestAllocationCallStacks
instance.CollectSPRequestAllocationCallStacks = value
public bool CollectSPRequestAllocationCallStacks { get; set; }
Property value
Type: System.Boolean
傳回 Boolean。
備註
這是診斷的設定,以加速遺漏 SPSite 和 SPWeb 物件的偵錯。如果未正確處置這些物件可以保留到大量記憶體。啟用此設定,將追蹤檔中的追蹤記錄遺漏將包含呼叫堆疊該報告。不過,callstack 集合是昂貴,因此這應該只在簡短的診斷期間啟用。