DEV Community

Tetri Mesquita
Tetri Mesquita

Posted on

2 1

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

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.

Top comments (1)

Collapse
 
felixkras profile image
Felix Krasnitsky • Edited

There's Benchmark.net 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

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️