Troubleshooting app performance issues with System Trace in Android Studio

preview_player
Показать описание
App performance issues can be difficult to track down. System Trace is a powerful tool in Android Studio that can help you understand how your app’s code interacts with system resources. We recently improved System Trace to make it more usable and helpful. In this video, we'll show you how to troubleshoot performance issues with System Trace by walking through a demo and impart some tips and tricks for making the most out of the tool.

Time stamps:
0:27 System Trace Overview
2:59 Demo starts
3:56 How to capture a System Trace in AS
4:35 Navigating a trace in AS
11:06 Adding Custom Events to your app's code
13:01 How to enable System Trace on app start-up

Resources:

Related Playlists:

Speaker:
Yi Yang

#featured #android11 #11WeeksOfAndroid
Рекомендации по теме
Комментарии
Автор

0:27 System Trace Overview
2:59 Demo starts
3:56 How to capture a System Trace in AS
4:35 Navigating a trace in AS
11:06 Adding Custom Events to your app's code
13:01 How to enable System Trace on app start-up

yiyang_google
Автор

Excellent content and tool, will give it a try now as we are struggling with performance on some very specific phones that are not even low-end.

FelipeRRM
Автор

Very nice useful, safe and secure teachings about Android devices

ravinderchhaba
Автор

Great Simple video with nice explanation! Thanks

andriibogachenko
Автор

Thanks for this great video. This was very useful and the tutorial we were really missing I think.

oleksee
Автор

Amazing! you just helped me to fix a bug

denisreinoso
Автор

HUMBLE SYMMARY
System trace helps get the full picture of the app’s runtime performance by capturing performance data from all of your layers.
Can optional define custom events to instrument your app code to tie up functionality with the rest of all the data. In a nutshell System Trace is a tool that allows how your app interacts with system resources.

The process is kind of:
1. Run profiler
2. Select area of interest
3. Can correlate what the code is doing with the instrumentation framework
4. Check the top-down tree view and can see the exact times of these trace events

Also you can check the start app performance Run/Debug configurations -> start this recording at start up -> Trace system calls

denisreinoso
Автор

It would be great if the Android Studio System Trace adds more information such as SurfaceView or SurfaceTexture like the Old systrace tools do

yichu
Автор

this will help me understand the performance

LacuevadelprogramadorOficial
Автор

Awesome, more real world examples would be great

alexneeky
Автор

Does progress dialog causes frozen frames?

mwshubham
Автор

What could be a reason that Frames/SurfaceFlinger/VSYNC are empty for me? (Studio 4.1.3)

usabilist
Автор

I cannot get option to new navigation gesture > I have latest Android 10 on my redmi note 8 pro handsets why but any problem

mohammadtahirshaikh
Автор

10:57 [INAUDIBLE] translates to "app code"

lukeyd
Автор

keep repeating the video and still dont know how to start profiler here @_@

MrDanamiel
Автор

Is it possible to convert the trace to an automation friendly format?

such as JSON?

After the loading the trace all you can do is look at it. You can't even copy the node names on the clipboard

is it possible to somehow be able to export the parsed trace to JSON or something?

It could help with analytics of current and previous performance by comparing traces programmatically

halcyonramirez
Автор

Why do I understand this. I'm a pharmacist for Gods sake. 😅

PalCan
Автор

Now I will go destroy my phones operating system...wish me luck!

BillyDaGoat