標記Mark
VSPerfCmd.exe 的 [標記] **** 選項會將指定的資訊插入分析資料檔案中。The VSPerfCmd.exe Mark option inserts the specified information into the profiling data file. 個別的 VSPerfReport 報表或分析工具 UI 的標記報表檢視中,則可以列出標記。Mark can be listed in a separate VSPerfReport report or in the Mark Report view of the profiler UI. [標記]**** 可用以指定報表的起點和終點並檢視篩選。Mark can be used to specify start and end points in report and view filters.
[標記]**** 選項必須是命令列上指定的唯一選項。The Mark option must be the only option specified on the command line.
語法Syntax
VSPerfCmd.exe /Mark:MarkID,[MarkName]
參數Parameters
MarkID
使用者定義的整數,在分析工具檢視和報表中列為標記識別碼。MarkID
A user-defined integer that is listed as the Mark ID in profiler views and reports. MarkID
不必是唯一的。MarkID
does not have to be unique.
MarkName
(選擇性) 使用者定義的字串,在分析工具檢視和報表中列為標記名稱。MarkName
(Optional) A user-defined string that is listed as the Mark Name in profiler views and reports. 如未指定 MarkName
,標記清單的 [標記名稱] 欄位會是空的。If MarkName
is not specified, the Mark Name field of the mark listing is empty. 以引號括住包含空格或正斜線 ("/") 的字串。Enclose strings that contain spaces or forward slashes ("/") in quotation marks.
範例Example
本例會插入識別碼為 123、標記名稱為的 "TestMark" 的標記。This example inserts a mark with an ID of 123 and a mark name of "TestMark".
VSPerfCmd.exe /Start:Sample /Output:TestApp.exe.vsp
VSPerfCmd.exe /Launch:TestApp.exe
VSPerfCmd.exe /Mark:123,TestMark