DEV Community


How to profile CPU and memory usage from Android C# app while debugging?

Tetri Mesquita
👨‍💻 I have been coding for almost 15 years. 🌐 You can find me on Github and Twitter as @tetri 🏡 I live in Cascavel (Paraná, Brasil). 💼 I work at Datacoper Software Ltda. as System Analyst.
・1 min read

I need to make a performance profile of a C # Android application to optimize some processes.
After doing some research on Google, I know that Microsoft Visual Studio has performance profiling features in the Enterprise Edition, and unfortunately, I only have Professional and Community Edition available.

I'd like to know where my code is less performative to optimize.

Discussion (1)

felixkras profile image
Felix Krasnitsky • Edited

There's package but it can be rather difficult to get into at the beginning.
You can also create an extention method that acts on Actions(T) and returns stopwatch.elapsed value