Lines View - .NET Memory Sampling Data

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

The Lines view for .NET memory allocation profiling data that uses the sampling method lists the statements that allocated memory during the profiling run. The columns also include the size and number of allocations.

In a source file, a statement can span more than 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.

The Line Name column provides a sortable concatenation of the identifier data.

By definition, a statement does not call other functions. Therefore, only exclusive values are listed.

ColumnDescription
Process IDThe process ID (PID) of the profiling run.
Process NameThe name of the process.
Module NameThe name of the module that contains the statement.
Module PathThe path of the module that contains the statement.
Source FileThe source file that contains the statement.
Function NameThe name of the function that contains the statement.
Function Line NumberThe line number of the start of this function in the source file.
Function AddressThe starting address of the function.
Source Line BeginThe starting line number in the source file at which the allocation occurred.
Source Line EndThe ending line number in the source file at which the allocation occurred.
Source Character BeginThe offset of the starting character in the source file line at which the allocation occurred.
Source Character EndThe offset of the ending character in the source file line at which the allocation occurred.
Line NameA profiler-generated identifier of the line with the following syntax:Source File;[Line Number Start,Character Start]->;[Line Number Start,Character Start]
Exclusive AllocationsThe total number of objects that were created in this line.
Exclusive Allocations %The percentage of all objects that were created in the profiling run that were allocated in this line.
Exclusive BytesThe percentage of all bytes of memory that were allocated in the profiling run that were allocated in this line.
Exclusive Bytes %The percentage of all bytes of memory that were allocated in the profiling run that were allocated in this line.

Lines View

Show: