Skip to Content
Technical Articles
Author's profile photo Rasmus Wulff Jensen

How to performance profile an Add-on written in .NET and get better UI-API Performance

Have you ever had an add-on that was slow, and you did not really know why? If so, you should try a performance profiler!

What is a performance profiler?

A performance profiler is a tool that on the fly modify your code in order to measure how long time each line of code takes to execute and how often it is called. This is very beneficial in that you do not guess or make logs/stopwatches on how long-time things take. You go in and measure it

Demo

Disclaimer: I’m not in any way associated with the developers of “Dot Trace” (the performance tool mentioned in this article). I’m just a big fan. There are many other similar tools out there, I just like this the most.

The best way to show you how a performance profiler work (and how you afterward optimize) is via video so I’ve recorded me profiling a small sample app and how I afterward optimize the code to be much faster.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.