# Android Performance and Monitoring (Android) > Android performance and monitoring: profiling, memory, ANR, optimization, and diagnostic tools - 13 interview questions - Senior - [Interview Questions: Android](https://sharpskill.dev/en/technologies/android/interview-questions.md) ## 1. What is Android Profiler and what are its 4 modules? **Answer** Android Profiler is a tool integrated into Android Studio that analyzes your app's real-time performance. It helps detect CPU, memory, network, and battery issues to optimize your app. Its 4 modules are: CPU Profiler (CPU usage and call traces), Memory Profiler (heap and allocations tracking), Network Profiler (network requests and bandwidth usage), and Energy Profiler (battery consumption and wake locks). ## 2. How does LeakCanary detect and report memory leaks in Android? **Answer** LeakCanary is a library that automatically monitors objects expected to be garbage-collected (like a destroyed Activity or Fragment). If an object remains in memory when it shouldn't, LeakCanary detects the leak, analyzes the retention chain, and displays a notification with likely causes and the stack trace. ## 3. What is StrictMode in Android and what is it used for? **Answer** StrictMode is a detection tool used to identify bad practices that might block the main thread, such as disk or network operations on the UI thread. It's usually enabled in development with StrictMode.setThreadPolicy() and StrictMode.setVmPolicy(), often wrapped in BuildConfig.DEBUG. When a violation is detected, it can log warnings, throw exceptions, or show alerts to help fix the issue before production. ## 10 more questions available - What is the Layout Inspector in Android Studio and what is it used for? - What is Systrace in Android and what is it used for? Sign up for free: https://sharpskill.dev/en/login ## Other Android interview topics - [Android Fundamentals](https://sharpskill.dev/en/technologies/android/interview-questions/android-fundamentals.md): 24 questions, Junior - [Android UI and Resources](https://sharpskill.dev/en/technologies/android/interview-questions/android-ui-and-resources.md): 30 questions, Junior - [Android Lifecycle](https://sharpskill.dev/en/technologies/android/interview-questions/android-lifecycle.md): 30 questions, Junior - [Android Navigation](https://sharpskill.dev/en/technologies/android/interview-questions/android-navigation.md): 26 questions, Junior - [Android Data Management](https://sharpskill.dev/en/technologies/android/interview-questions/android-data-management.md): 29 questions, Junior - [Android Networking](https://sharpskill.dev/en/technologies/android/interview-questions/android-networking.md): 29 questions, Junior - [Android Testing](https://sharpskill.dev/en/technologies/android/interview-questions/android-testing.md): 28 questions, Junior - [Android Gradle](https://sharpskill.dev/en/technologies/android/interview-questions/android-gradle.md): 26 questions, Junior - [Kotlin Language Essentials for Android](https://sharpskill.dev/en/technologies/android/interview-questions/android-kotlin-language-essentials.md): 24 questions, Junior - [Room Database](https://sharpskill.dev/en/technologies/android/interview-questions/android-room-database.md): 25 questions, Mid-Level - [Background Work](https://sharpskill.dev/en/technologies/android/interview-questions/android-background-work.md): 18 questions, Mid-Level - [Jetpack Compose](https://sharpskill.dev/en/technologies/android/interview-questions/android-compose.md): 28 questions, Mid-Level - [Permissions and Device Features](https://sharpskill.dev/en/technologies/android/interview-questions/android-permissions-and-device.md): 21 questions, Mid-Level - [Firebase for Android](https://sharpskill.dev/en/technologies/android/interview-questions/android-firebase.md): 23 questions, Mid-Level - [Android MVVM Architecture](https://sharpskill.dev/en/technologies/android/interview-questions/android-mvvm-architecture.md): 18 questions, Mid-Level - [Advanced Android Networking](https://sharpskill.dev/en/technologies/android/interview-questions/android-networking-advanced.md): 13 questions, Mid-Level - [Kotlin Collections and Operators](https://sharpskill.dev/en/technologies/android/interview-questions/android-kotlin-collections-operators.md): 20 questions, Mid-Level - [Kotlin Coroutines and Flow](https://sharpskill.dev/en/technologies/android/interview-questions/android-kotlin-coroutines-flow.md): 20 questions, Mid-Level - [Android Dependency Injection](https://sharpskill.dev/en/technologies/android/interview-questions/android-dependency-injection.md): 15 questions, Mid-Level - [Android MVI Architecture](https://sharpskill.dev/en/technologies/android/interview-questions/android-mvi-architecture.md): 17 questions, Mid-Level - [Android Clean Architecture](https://sharpskill.dev/en/technologies/android/interview-questions/android-clean-architecture.md): 21 questions, Senior - [Android Compose Advanced](https://sharpskill.dev/en/technologies/android/interview-questions/android-compose-advanced.md): 17 questions, Senior - [Android Security and Privacy](https://sharpskill.dev/en/technologies/android/interview-questions/android-security-privacy.md): 18 questions, Senior - [Android CI/CD and Release](https://sharpskill.dev/en/technologies/android/interview-questions/android-cicd-release.md): 15 questions, Senior - [Android UX and Form Factors](https://sharpskill.dev/en/technologies/android/interview-questions/android-ux-form-factors.md): 18 questions, Senior - [Android Testing Advanced](https://sharpskill.dev/en/technologies/android/interview-questions/android-testing-advanced.md): 18 questions, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/en/technologies/android/interview-questions/android-performance-monitoring