locked
Performance Analyzer Giving Warnings and Failures

    Вопрос

  • 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
    • Перемещено Andrew.Wu 23 августа 2011 г. 7:03 (From:Visual Studio Setup and Installation)
    19 августа 2011 г. 16:28

Все ответы

  • 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.

    23 августа 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.

    • Помечено в качестве ответа eryang 5 сентября 2011 г. 2:35
    • Снята пометка об ответе witdaj 15 сентября 2011 г. 4:23
    23 августа 2011 г. 7:53