Loupe - Log - Monitor - Resolve
Gibraltar.Agent.PostSharp Namespace / GTrace Class / EnableSourceLookup Property

In This Topic
    EnableSourceLookup Property (GTrace)
    In This Topic
    Enables lookup of source line and method. Enabled by default.
    Syntax
    'Declaration
     
    
    Public Property EnableSourceLookup As Boolean
    public bool EnableSourceLookup {get; set;}
    Remarks

    If enabled GTrace will attempt to identify the class, method, file and line number of the code that called the target method. Some or all of this information may not be available depending on how the method was compiled and whether the library symbol file is present on the local computer.

    In certain high performance scenarios disabling the source code lookup can significantly improve performance. If you find that using GTrace is causing a performance issue in your application you may experiment with selectively disabling source code lookup on methods that are called extremely frequently.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also