Function Line Reports
After you have run the Profiler on an executing application and generated a Sampler report, you can further analyze the activity of a specific function listed in the Sampler report by generating a function line report from that report item. A function line report shows the number of times each line of the function was executed. You produce one function line report at a time, on any method in the Sampler report that has a valid source file. The line report is particularly useful for functions that perform loops containing conditional branching; the coverage can provide a picture of the most frequently and least frequently executed portions of code within a single method.
The line report you generate is saved when you save the Sampler report. The body of the function is also saved with the line report to preserve the function state at that time.
Platforms supported Java, Microsoft .NET and Microsoft native code
Create a Line Report
In the Sampler report, right-click on the name of the function to analyze, and select the Create Line report for function menu option.
Once the Profiler binds the method, the line report is opened on the Sampler Report window The report shows the body of the function, including line numbers and text. As each line is executed a hit value will accumulate against that line. A timer will update the report approximately once every second.
End Line Report Capture
Once enough information is captured, or the function has ended, click on the Profiler toolbar Stop button to stop recording the capture.
Use the Save button on the Call Stack toolbar to save the Sampler report and any function line reports to a file.
Delete Line Reports
Closing the line report tab will close that report but the report data will only be deleted when the report is saved.