none
Issue with iTrace Collection Plan ,not restricting to specified process.

    Question

  • We are trying to get IntelliTrace log in background. Once the solution is launched from installed location , Itrace has to start in background. Instead of running IntellitraceSC.exe in  Command prompt with START command we included below parameter in Environment Variable. 

    Here iTrace file is getting logged, but its logging for all the process like EventViewer,PowerShell and many other . Since we are interested in collecting only for our solution. 

    Steps followed to collect iTrace,

    1.  After download and expand cab file , the IntelliTraceSC.exe resides in C:\IntelliTraceCollector

     2. Included all the below parameters to Control Panel-- > System --> System Environment variable

    •   COR_ENABLE_PROFILING=0x1
    •  COR_PROFILER={aaaaaa70-dfed-4cb4-a1d6-920f51e9674a}
    •  COR_PROFILER_PATH = C:\IntelliTraceCollector\x64\Microsoft.IntelliTrace.Profiler.14.0.0.SC.dll
    •    VSLOGGER_CPLAN=C:\IntelliTraceCollector\collection_plan.ASP.NET.Default.xml
       

    The issue is Itrace logging for all the process, hence memory consumption is high.

    We modified collection_plan.ASP.NET.default in TraceInstrumentation and DiagnosticEventInstrumentation section as below ,

    -<TraceInstrumentation enabled="true">

    <Options>PresetFull</Options>


    -<ModuleList isExclusionList="false">

    <Name>*DLL1*</Name>

    <Name>*DLL2*</Name>

    <Name>*DLL3*</Name>

    <Name>*DLL4*</Name>

    <Name>*DLL5*</Name>

    </ModuleList>


    -<ProcessList isExclusionList="false">

    <Name>TestApp1.exe</Name>

    <Name>TestApp2.exe</Name>

    <Name>TestApp3.exe</Name>

    <Name>TestApp4.exe</Name>

    <Name>TestApp5.exe</Name>

    </ProcessList>

    </TraceInstrumentation>
    .....

    -<DiagnosticEventInstrumentation enabled="true">

    <ModuleList isExclusionList="true"> </ModuleList>


    -<ProcessList isExclusionList="false">
    <Name>TestApp1.exe</Name>

    <Name>TestApp2.exe</Name>

    <Name>TestApp3.exe</Name>

    <Name>TestApp4.exe</Name>

    <Name>TestApp5.exe</Name>

    </ProcessList>

    </DiagnosticEventInstrumentation>


    Even after the modification, Itrace is logging for EventViewer,PowerShell and other process. 

    Could you please advise to get Itrace for only specified process. 

    Thanks in advance.

    Monday, September 3, 2018 1:08 PM

All replies