呼叫樹狀圖檢視 - .NET 記憶體取樣資料Call Tree view - .NET memory sampling data

[呼叫樹狀圖] 檢視顯示在分析的應用程式中周遊的函式執行路徑。The Call Tree view displays the function execution paths that were traversed in the profiled application. 樹狀圖的根是應用程式或元件的進入點。The root of the tree is the entry point into the application or the component. 每個函式節點都會列出它所呼叫的所有函式,以及這些函式呼叫的 .NET 記憶體配置資料。Each function node lists all the functions that it called and the .NET memory allocation data about those function calls.

[呼叫樹狀圖] 檢視中的值,適用於呼叫樹狀圖中父函式所呼叫的函式執行個體。The values in the Call Tree view are for the function instances that were called by the parent function in the call tree. 百分比值的計算方式是比較函式執行個體值與分析執行中的總配置數目或大小。Percentage values are calculated by comparing the function instance value to the total number or size of allocations in the profiling run.

反白顯示執行最忙碌路徑Highlight the execution hot path

[呼叫樹狀結構] 檢視可以展開並反白顯示已建立最大或大部分記憶體物件之處理序或函式的執行路徑。The Call Tree view can expand and highlight the execution path of the process or function that created the largest or most memory objects. 若要顯示最常使用的路徑,以滑鼠右鍵按一下處理序或函式,然後按一下 [展開最忙碌路徑]。To display the most active path, right-click the process or function, and then click Expand Hot Path.

設定呼叫樹狀圖根節點Set the Call Tree root node

分析執行中的每個處理序都會顯示為根節點。Each process in the profiling run is displayed as a root node. 若要將 [呼叫樹狀圖] 檢視的開始節點設定為不同的節點,請以滑鼠右鍵按一下您想要設定為開始節點的節點,然後選取 [設定根目錄]。To set the starting node of the Call Tree view to a different node, right-click the node that you want to set as the start node and select Set Root.

設定根節點時,除了所選取節點的樹狀子目錄以外,請從檢視中排除所有其他的項目。When you set the root node, you eliminate all other entries from the view except the subtree of the selected node. 您可以將根節點重設回所檢視的節點,並以滑鼠右鍵按一下 [呼叫樹狀圖檢視] 視窗,然後選取 [重設根目錄]。You can reset the root node back to the node that you were viewing; right-click in the Call Tree View window and select Reset Root.

資料行Column 描述Description
處理序識別碼Process ID 分析執行的處理序 ID (PID)。The process ID (PID) of the profiling run.
進程名稱Process Name 處理序的名稱。The name of the process.
模組名稱Module Name 包含該函式的模組名稱。The name of the module that contains the function.
模組路徑Module Path 包含該函式的模組路徑。The path of the module that contains the function.
來源檔案Source File 含有這個函式定義的原始程式檔。The source file that contains the definition for this function.
函數名稱Function Name 函式的完整格式名稱。The fully qualified name of the function.
函式行號Function Line Number 原始程式檔中這個函式的開頭行號。The line number of the start of this function in the source file.
函數位址Function Address 函式的位址。The address of the function.
LevelLevel 函式在呼叫樹狀圖中的深度。The depth of the function in the call tree.
內含配置Inclusive Allocations 此函式執行個體所配置的物件數目,而函式執行個體是由呼叫樹狀結構中的父函式所呼叫。The number of objects that were allocated by the instances of this function that were called by the parent function in the call tree. 此數目包含子函式所進行的配置。This number includes allocations that were made by child functions.
內含配置 %Inclusive Allocations % 在分析執行中建立的所有物件中,屬於此函式之內含配置的百分比。The percentage of all objects that were created in the profiling run that were inclusive allocations of this function.
專有配置Exclusive Allocations 此函式執行個體所配置的物件數目,而函式執行個體是由呼叫樹狀結構中的父函式所呼叫。The number of objects that were allocated by the instances of this function that were called by the parent function in the call tree. 此數目未包含子函式所進行的配置。This number does not include allocations that were made by child functions.
專有配置 %Exclusive Allocations % 分析回合中建立的所有物件中,屬於呼叫樹狀圖中父函式所呼叫函式執行個體之專有配置的百分比。The percentage of all objects that were created in the profiling run that were exclusive allocations of the function instances that were called by the parent function in the call tree.
內含位元組Inclusive Bytes 此函式執行個體所配置記憶體的位元組數目,而函式執行個體是由呼叫樹狀圖中的父函式所呼叫。The number of bytes in memory that were allocated by the instances of this function that were called by the parent function in the call tree. 此數目包含子函式所進行的配置。This number includes allocations that were made by child functions.
內含位元組 %Inclusive Bytes % 在分析執行中配置的所有記憶體位元組中,屬於此函式之內含配置的百分比。The percentage of all bytes of memory that were allocated in the profiling run that were inclusive allocations of this function.
專有位元組Exclusive Bytes 此函式執行個體所配置記憶體的位元組數目,而函式執行個體是由呼叫樹狀圖中的父函式所呼叫。The number of bytes in memory that were allocated by the instances of this function that were called by the parent function in the call tree. 此數目未包含子函式所進行的配置。This number does not include allocations that were made by child functions.
專有位元組 %Exclusive Bytes % 在分析執行中配置的所有記憶體位元組中,屬於此函式之專有配置的百分比。The percentage of all bytes of memory that were allocated in the profiling run that were exclusive allocations of this function.

另請參閱See also