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 report by generating a Function Line report from that 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 Function 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 Function Line report to preserve the function state at that time.
This facility is not applicable to Memory Profile reports.
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' option.
Once the Profiler binds the method, the Function 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 toolbarto stop recording the capture.
Use the Call Stack toolbar to save the Sampler report and any Function Line reports to a file.on the
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.