This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here
The Lines view is available only for profiler data that was collected by using the sampling method. The view is not available for data that was collected by using instrumentation.
For sampling profile data, the Lines view identifies the statement in a function that was directly executing when the sample was collected. For .NET memory data, the Lines view identifies the statements that allocate memory.
In a source file, a statement can span more that one line in a source file, and a single line can include more than one statement.
A statement is identified by the following:
The source file that contains the function statement.
The function that contains the statement.
The source line at which the statement starts.
The character in the source line at which the statement starts.
The source line at which the statement ends.
The character in the source line at which the statement ends.