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 2011年8月23日 上午 07:03 (From:Visual Studio Setup and Installation)
    2011年8月19日 下午 04: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.

    2011年8月23日 上午 07: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 2011年9月5日 上午 02:35
    • 已取消標示為解答 witdaj 2011年9月15日 上午 04:23
    2011年8月23日 上午 07:53