Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Profiler

Android Profiler

The Android Profiler in Android Studio 3.0 and higher replaces the Android Monitor tools. The Android Profiler tools provide real-time data to help you to understand how your app uses CPU, memory, network, and battery resources.

Ali Abdollahi

January 02, 2020
Tweet

Other Decks in Technology

Transcript

  1. Program Analysis From Wikipedia: In computer science, program analysis is

    the process of automatically analyzing the behavior of computer programs regarding a property such as correctness, robustness, safety and liveness.
  2. program optimization work more efficiently or use fewer resources program

    correctness algorithm is correct with respect to a specification. Today Session!
  3. Profiling measures, for example: • the space (memory) • time

    complexity of a program, • the usage of particular instructions, or the • frequency and duration of function calls. Most commonly, profiling information serves to aid program optimization.
  4. Advance Profiler If <= Android 7.1 then Enable advanced profiling!

    Benefits: • The event timeline • The number of allocated objects • Garbage collection events • Details about all transmitted files
  5. RECORD THEM ALL 1) Sample Java Methods In interval capture

    method call stack 2) Trace Java Methods record a timestamp at the beginning and end of each method call * performance impact 3) Sample C/C++ Functions (api26>) Captures sampled traces of your app’s native threads 4) Trace System Calls (api24>) Captures fine-grained details that allow you to inspect how your app interacts with system resources.
  6. Blue: Java Language / Green: Your code-Library Code / Orange:

    Android Platform * use W,S,A,D to navigate easily
  7. Q/A