.NET Profiler for Azure?

前端 未结 6 1979
醉酒成梦
醉酒成梦 2021-02-05 12:22

Does anyone know of a .NET profiler which works with Azure to figure out code bottlenecks.

I have tried to integrate dotTrace profiler - but haven\'t had any success.

6条回答
  •  生来不讨喜
    2021-02-05 12:58

    Modern dotTrace versions work just fine with Azure although interpreting the results take some skill (since you have an infinite loop in there).

    To get it to work:

    1. Add an Input Endpoint for port 9000: and set it to a single instance (to remove load balancing issues)
    2. Delete your current deployment and upload a new deployment ("Updating" an existing deployment will not open the necessary ports in the firewalls!)
    3. RDP into your single instance of your web role or worker role
    4. Upload the .\Bin\Remote folder as explained here (much of the info there is good!)
    5. Execute the RemoteAgent.exe file "As Administrator"
    6. Execute the local (on your dev machine) instance of dotTrace.
    7. Follow the rest of the instructions here (for my Worker Role, I attached to the WaWorkerHost.exe process).
    8. Profile away!!

    I'm currently doing this in osfamily=3 (i.e. Windows Server 2012) deployments successfully.

提交回复
热议问题