locked
Performance Analyzer Giving Warnings and Failures

    Pregunta

  • I created a small console app to test performance analyzer.
    namespace TestPerformanceAnalyzer
    {
      class Program
      {
        static void Main(string[] args)
        {
          TestLoop();
        }
    
        public static void TestLoop()
        {
          for (int i = 0; i < 10; i++)
          {
            int a = 1 + 2;
            int b = a;
          }
        }
      }
    }
    

    After running the analyzer I received these warning and error messages:

    Warning VSP2355: Some Windows counters will not be collected. Without this data, some performance rules may not fire.

    Failed to load symbols for C:\Windows\SYSTEM32\MSCOREE.DLL.

    Failed to load symbols for C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll.

    Failed to load symbols for C:\Windows\system32\KERNELBASE.dll.

    Failed to load symbols for C:\Windows\SYSTEM32\ntdll.dll.

    It says the profiling completed, so should I be worried about these warnings and errors?

     


    chuckdawit
    • Cambiado Andrew.Wu martes, 23 de agosto de 2011 7:03 (From:Visual Studio Setup and Installation)
    viernes, 19 de agosto de 2011 16:28

Todas las respuestas

  • Hi chuckdawit,

    According to your description, I think this issue is more related with the Performance Tools, so I'm going to help move your post to the Visual Studio Performance Tools (Profiler) Forum for more efficient response.

    Thanks for your understanding.

    Best Regards,


    Andrew Wu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    martes, 23 de agosto de 2011 7:02
  • For the warning VSP2355, you can open Performance Explorer, right-click the session item and select Properties, on the Property page, choose Windows Counters, and clear the checkbox Collect Windows Counters, hope it can help.

     

    For the "Failed to load symbol" error, you may setup symbol server in Visual Studio.

     

    Anyway, you can just ignore those warning/error if the performance report contains data you need.


    Eric Yang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marcado como respuesta eryang lunes, 05 de septiembre de 2011 2:35
    • Desmarcado como respuesta witdaj jueves, 15 de septiembre de 2011 4:23
    martes, 23 de agosto de 2011 7:53