呼叫樹狀結構檢視 - .NET 記憶體檢測資料Call Tree view - .NET memory instrumentation data

使用檢測方法收集的 .NET 記憶體配置分析資料的 [呼叫樹狀結構] 檢視,會顯示在分析應用程式中周遊的函式執行路徑。The Call Tree view of .NET memory allocation profiling data that was collected by using the instrumentation method 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 component. 每個函式節點都會列出它呼叫的所有函式,以及 .NET 記憶體和函式的計時資料。Each function node lists all the functions it called, and the .NET memory and timing data for the function.

[呼叫樹狀圖] 檢視中的值,適用於呼叫樹狀圖中父函式所呼叫的函式執行個體。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. 您可以設定 [呼叫樹狀結構] 檢視的開始節點,方法是以滑鼠右鍵按一下您想要設定為開始節點的節點,然後選取 [設定根目錄]。You can set the starting node of the Call Tree view by right-clicking the node you want to set as the start node, and then selecting 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 you were viewing; right-click in the Call Tree View window and select Reset Root.

一般General

資料行Column 描述Description
函數名稱Function Name 函式的名稱。The name of the function.
函數位址Function Address 函式的位址。The address of the function.
函式行號Function Line Number 原始程式檔中這個函式的開頭行號。The line number of the start of this function in the source file.
呼叫次數Number of Calls 呼叫此函式的總次數。The total number of calls made to this function.
來源檔案Source File 含有這個函式定義的原始程式檔。The source file that contains the definition for this function.
模組名稱Module Name 包含該函式的模組名稱。The name of the module that contains the function.
模組路徑Module Path 包含該函式的模組路徑。The path of the module that contains the function.
處理序識別碼Process ID 分析執行的處理序 ID (PID)。The process ID (PID) of the profiling run.
進程名稱Process Name 指派給處理序的名稱。The name that is assigned to the process.
時間專有探查額外負荷Time Exclusive Probe Overhead 檢測對這個函式造成的時間額外負荷。The time overhead for this function that is caused by instrumentation. 已經從所有專有時間減去探查額外負荷。Probe overhead has been subtracted from all exclusive times.
時間內含探查額外負荷Time Inclusive Probe Overhead 檢測對這個函式及其子函式所造成的時間額外負荷。The time overhead for this function and its child functions that is caused by instrumentation. 已經從所有內含時間減去探查額外負荷。Probe overhead has been subtracted from all inclusive times.
型別Type 函式的內容︰The context of the function:

- 0 -目前的函式- 0 - the current function
- 1 -呼叫目前函式的函式- 1 - a function that calls the current function
- 2 -目前的函式所呼叫的函式- 2 - a function that is called by the current function

只在VSPerfReport 命令列的報表中。Only in VSPerfReport command-line reports.
根函式名稱Root Function Name 目前函數的名稱。The name of the current function. 只在VSPerfReport 命令列的報表中。Only in VSPerfReport command-line reports.

.NET 記憶體值.NET memory values

函式的內含 .NET 記憶體值,表示函式及其呼叫的各函式所建立的物件數目 (配置) 和大小 (位元組)。The inclusive .NET memory values of a function indicate the number (allocations) and size (bytes) of objects that were created by the function and functions that were called by the function.

專屬記憶體值,表示函式主體中程式碼所建立的物件數量及大小,不是該函式呼叫的各函式所建立的物件數量及大小。The exclusive memory values indicate the number and size of objects that were created by code in the function body and not by functions that were called by the function.

資料行Column 描述Description
內含配置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 the function instances that were called by the parent function in the call tree.
專有配置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.

功能內含耗用值Elapsed inclusive values

功能內含耗用值表示函式在呼叫堆疊上的時間。Elapsed inclusive values indicate the time that a function was on the call stack. 該時間包含函式呼叫函式以及呼叫作業系統所花費的時間,例如內容切換和輸入/輸出作業。The time includes time that was spent in functions that were called by the function and in calls to the operating system, such as context switches and input/output operations.

資料行Column 描述Description
功能內含耗用 (Elapsed Inclusive) 時間Elapsed Inclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,所有對此函式呼叫的總功能內含耗用 (Elapsed Inclusive) 時間。The total elapsed inclusive time of all calls to this function when it was called by the parent function in the call tree.
功能內含耗用 (Elapsed Inclusive) 時間 %Elapsed Inclusive Time % 在分析執行的總功能內含耗用 (Elapsed Inclusive) 時間中,當呼叫樹狀結構中父函式呼叫此函式時,花費在此函式之總功能內含耗用 (Elapsed Inclusive) 時間的百分比。The percentage of the total elapsed inclusive time of the profiling run that was spent in the total elapsed inclusive time of this function when it was called by the parent function in the call tree.
平均功能內含耗用 (Elapsed Inclusive) 時間Avg Elapsed Inclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的平均功能內含耗用 (Elapsed Inclusive) 時間。The average elapsed inclusive time of a call to this function when it was called by the parent function in the call tree.
最大功能內含耗用 (Elapsed Inclusive) 時間Max Elapsed Inclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的最大功能內含耗用 (Elapsed Inclusive) 時間。The maximum elapsed inclusive time of a call to this function when it was called by the parent function in the call tree.
最小功能內含耗用 (Elapsed Inclusive) 時間Min Elapsed Inclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的最小功能內含耗用 (Elapsed Inclusive) 時間。The minimum elapsed inclusive time of a call to this function when it was called by the parent function in the call tree.

功能專屬耗用值Elapsed exclusive values

功能專屬耗用值表示函式直接在呼叫堆疊最上方執行的時間。Elapsed exclusive values indicate the time that a function was directly executing at the top of the call stack. 該時間包含呼叫作業系統所花費的時間,例如內容切換和輸入/輸出作業。The time includes time in calls to the operating system, such as context switches and input/output operations. 不過,該時間不包括函式呼叫函式所花費的時間。However, the time does not include time that was spent in functions that were called by the function.

資料行Column 描述Description
功能專屬耗用 (Elapsed Exclusive) 時間Elapsed Exclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,所有對此函式呼叫的總功能專屬耗用 (Elapsed Exclusive) 時間。The total elapsed exclusive time of all calls to this function when it was called by the parent function in the call tree.
功能專屬耗用 (Elapsed Exclusive) 時間 %Elapsed Exclusive Time % 在分析執行的總功能專屬耗用 (Elapsed Exclusive) 時間中,當呼叫樹狀結構中父函式呼叫此函式時,花費在此函式之總功能專屬耗用 (Elapsed Exclusive) 時間的百分比。The percentage of the total elapsed exclusive time of the profiling run that was spent in the total elapsed exclusive time of this function when it was called by the parent function in the call tree.
平均功能專屬耗用 (Elapsed Exclusive) 時間Avg Elapsed Exclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的平均功能專屬耗用 (Elapsed Exclusive) 時間。The average elapsed exclusive time of a call to this function when it was called by the parent function in the call tree.
最大功能專屬耗用 (Elapsed Exclusive) 時間Max Elapsed Exclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的最大功能專屬耗用 (Elapsed Exclusive) 時間。The maximum elapsed exclusive time of a call to this function when it was called by the parent function in the call tree.
最小功能專屬耗用 (Elapsed Exclusive) 時間Min Elapsed Exclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的最小功能專屬耗用 (Elapsed Exclusive) 時間。The minimum elapsed exclusive time of a call to this function when it was called by the parent function in the call tree.

應用程式內含值Application inclusive values

應用程式內含值表示函式在呼叫堆疊上的時間。Application inclusive values indicate the time that a function was on the call stack. 該時間不包含呼叫作業系統所花費的時間,例如內容切換和輸入/輸出作業。The time does not include time that was spent in calls to the operating system, such as context switches and input/output operations. 該時間確實包括函式呼叫子函式所花費的時間。The time does include time that was spent in child functions that were called by the function.

資料行Column 描述Description
應用程式內含 (Application Inclusive) 時間Application Inclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,所有對此函式呼叫的總應用程式內含 (Application Inclusive) 時間。The total application inclusive time of all calls to this function when it was called by the parent function in the call tree.
應用程式內含 (Application Inclusive) 時間 %Application Inclusive Time % 在分析執行的總功能內含耗用 (Elapsed Inclusive) 時間中,當呼叫樹狀結構中父函式呼叫此函式時,花費在此函式之總應用程式內含 (Application Inclusive) 時間的百分比。The percentage of the total elapsed inclusive time of the profiling run that was spent in the total application inclusive time of this function when it was called by the parent function in the call tree.
平均應用程式內含 (Application Inclusive) 時間Avg Application Inclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的平均應用程式內含 (Application Inclusive) 時間。The average application inclusive time of a call to this function when it was called by the parent function in the call tree.
最大應用程式內含 (Application Inclusive) 時間Max Application Inclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的最大應用程式內含 (Application Inclusive) 時間。The maximum application inclusive time of a call to this function when it was called by the parent function in the call tree.
最小應用程式內含 (Application Inclusive) 時間Min Application Inclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的最小應用程式內含 (Application Inclusive) 時間。The minimum application inclusive time of a call to this function when it was called by the parent function in the call tree.

應用程式專屬值Application exclusive values

應用程式專屬值,表示在函式中花費的時間,排除在該函式呼叫的子函式中花費的時間。Application exclusive values indicate the time that was spent in the function, excluding time that was spent in child functions that were called by the function. 該時間也排除呼叫作業系統的時間,例如內容切換和輸入/輸出作業。The time also excludes calls to the operating system, such as context switches and input/output operations.

資料行Column 描述Description
應用程式專屬 (Application Exclusive) 時間Application Exclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,所有對此函式呼叫的總應用程式專屬 (Application Exclusive) 時間。The total application exclusive time of all calls to this function when it was called by the parent function in the call tree.
應用程式專屬 (Application Exclusive) 時間 %Application Exclusive Time % 在分析執行的總功能專屬耗用 (Elapsed Exclusive) 時間中,當呼叫樹狀結構中父函式呼叫此函式時,花費在此函式之總應用程式專屬 (Application Exclusive) 時間的百分比。The percentage of the total elapsed exclusive time of the profiling run that was spent in the total application exclusive time of this function when it was called by the parent function in the call tree.
平均應用程式專屬 (Application Exclusive) 時間Avg Application Exclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的平均應用程式專屬 (Application Exclusive) 時間。The average application exclusive time of a call to this function when it was called by the parent function in the call tree.
最大應用程式專屬 (Application Exclusive) 時間Max Application Exclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的最大應用程式專屬 (Application Exclusive) 時間。The maximum application exclusive time of a call to this function when it was called by the parent function in the call tree.
最小應用程式專屬 (Application Exclusive) 時間Min Application Exclusive Time 在呼叫樹狀結構中父函式呼叫此函式時,對此函式呼叫的最小應用程式專屬 (Application Exclusive) 時間。The minimum application exclusive time of a call to this function when it was called by the parent function in the call tree.