Troubleshooting app performance issues with System Trace in Android Studio

  Рет қаралды 29,190

Android Developers

Android Developers

Күн бұрын

Пікірлер: 41
@FelipeRRM
@FelipeRRM 4 жыл бұрын
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.
@yiyang_google
@yiyang_google 4 жыл бұрын
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
@MakuLabs
@MakuLabs Жыл бұрын
🤘
@ravinderchhaba215
@ravinderchhaba215 2 жыл бұрын
Very nice useful, safe and secure teachings about Android devices
@AndroidDevelopers
@AndroidDevelopers 2 жыл бұрын
Thank you so much for the positive feedback, Ravinder 😀 Be sure to check out the links in the description for even more tips and tutorials!
@andriibogachenko2537
@andriibogachenko2537 Жыл бұрын
Great Simple video with nice explanation! Thanks
@oleksee
@oleksee 4 жыл бұрын
Thanks for this great video. This was very useful and the tutorial we were really missing I think.
@denisreinoso3191
@denisreinoso3191 3 жыл бұрын
Amazing! you just helped me to fix a bug
@shuangshuangliu
@shuangshuangliu 4 жыл бұрын
Good job bro @Yi Yang.
@noliebowtie1315
@noliebowtie1315 3 жыл бұрын
I learned a lot from this, thanks!
@LacuevadelprogramadorOficial
@LacuevadelprogramadorOficial 4 жыл бұрын
this will help me understand the performance
@xiangzhongchang2663
@xiangzhongchang2663 4 жыл бұрын
@Yi Yang great work!
@anesabismail6111
@anesabismail6111 4 жыл бұрын
Great tool and explanation.
@mwshubham
@mwshubham 4 жыл бұрын
Great Video. Thank you so much.
@alexneeky7920
@alexneeky7920 4 жыл бұрын
Awesome, more real world examples would be great
@mohamedsalama2743
@mohamedsalama2743 2 жыл бұрын
Great Video!
@AndroidDevelopers
@AndroidDevelopers 2 жыл бұрын
Thank you very much, Mohamed! We're glad you have enjoyed the video. If you'd like to learn additional resources, check out the System Tracing documentation here: goo.gle/3T8JHke Happy learning 😁
@yichu1782
@yichu1782 3 жыл бұрын
It would be great if the Android Studio System Trace adds more information such as SurfaceView or SurfaceTexture like the Old systrace tools do
@yichu1782
@yichu1782 3 жыл бұрын
@Android Developers, @Yi Yang
@yiyang_google
@yiyang_google 3 жыл бұрын
@@yichu1782 SurfaceView in the old systrace actually represents the depth of BufferQueue, so in Android Studio 4.2 we added a BufferQueue track in the Display section. As for SurfaceTexture, I'm actually not familiar with what it represents in the old systrace. Can you elaborate?
@Patriqu
@Patriqu 4 жыл бұрын
Great tool!
@pembatamang8233
@pembatamang8233 4 жыл бұрын
great video
@denisreinoso3191
@denisreinoso3191 3 жыл бұрын
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
@mwshubham
@mwshubham 4 жыл бұрын
Does progress dialog causes frozen frames?
@mohammadtahirshaikh7132
@mohammadtahirshaikh7132 4 жыл бұрын
I cannot get option to new navigation gesture > I have latest Android 10 on my redmi note 8 pro handsets why but any problem
@yiyang_google
@yiyang_google 4 жыл бұрын
Some of the features are in Android Studio 4.1 Beta. Feel free to try it out: developer.android.com/studio/preview/
@usabilist
@usabilist 3 жыл бұрын
What could be a reason that Frames/SurfaceFlinger/VSYNC are empty for me? (Studio 4.1.3)
@yiyang_google
@yiyang_google 3 жыл бұрын
What's your device's API level? Frame data are available on Android O or later. SF and VSYNC are available on Android Q or later.
@usabilist
@usabilist 3 жыл бұрын
@@yiyang_google Android Q. I assume other prerequisites must be fulfilled, like vendor GPU driver supporting some features, no?
@yiyang_google
@yiyang_google 3 жыл бұрын
@@usabilist Can you open a bug by going to Help -> Submit Feedback? In the bug, upload your trace file (if you don't want the file to be public we can set up a shared folder) so we can investigate. Thanks!
@usabilist
@usabilist 3 жыл бұрын
@@yiyang_google Sorry do not think it is possible, it is a closed project behind NDA. I hoped to understand more what is required to enable those features but if you do not have the answer we should stop.
@yiyang_google
@yiyang_google 3 жыл бұрын
@@usabilist I understand. Another place to check is the main thread in the Threads section. If you can't find Choreographer#doFrame events in the call chart, it might explain why Frames is empty for you. That could mean either your app is not using Choreographer, or the OEM has a custom implementation.
@bignorth5197
@bignorth5197 2 жыл бұрын
please offer your demo code.
@lukeyd2000
@lukeyd2000 3 жыл бұрын
10:57 [INAUDIBLE] translates to "app code"
@MrDanamiel
@MrDanamiel 4 жыл бұрын
keep repeating the video and still dont know how to start profiler here @_@
@shukangzhou109
@shukangzhou109 4 жыл бұрын
To start profilers in Android Studio, choose View > Tool Windows > Profiler or click Profile in the toolbar. Here is the official doc to Android Studio profilers: developer.android.com/studio/profile/android-profiler. What this video focuses on, System Trace, is in the CPU profiler.
@halcyonramirez6469
@halcyonramirez6469 3 жыл бұрын
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
@yiyang_google
@yiyang_google 3 жыл бұрын
Thank you for the feedback. A trace file contains a huge amount of data so we need to understand exactly what information is useful for export. Can you open a feature request here (issuetracker.google.com/issues/new?component=192708&template=840533) and elaborate on the kind of data you're interested in? Thanks!
@yiyang_google
@yiyang_google 3 жыл бұрын
Meanwhile, Perfetto (perfetto.dev/docs/quickstart/trace-analysis) provides a SQL like interface for querying certain data from a system trace (also works on trace files captured in Android Studio), see if it helps in your case.
@PalCan
@PalCan 3 жыл бұрын
Why do I understand this. I'm a pharmacist for Gods sake. 😅
@BillyDaGoat783
@BillyDaGoat783 6 ай бұрын
Now I will go destroy my phones operating system...wish me luck!
Inspecting Performance - MAD Skills
16:01
Android Developers
Рет қаралды 21 М.
Thinking in Compose
25:27
Android Developers
Рет қаралды 87 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 14 МЛН
Deep dive into Android Studio Profilers (Android Dev Summit '18)
41:28
Android Developers
Рет қаралды 41 М.
Android Studio: Debugging tips n' tricks (Android Dev Summit '19)
18:58
Android Developers
Рет қаралды 57 М.
Drawn out: How Android renders (Google I/O '18)
36:03
Android Developers
Рет қаралды 49 М.
CrowdStrike IT Outage Explained by a Windows Developer
13:40
Dave's Garage
Рет қаралды 2,1 МЛН
What's new in Compose Design Tools
12:15
Android Developers
Рет қаралды 15 М.
Understanding Android memory usage (Google I/O '18)
39:05
Android Developers
Рет қаралды 67 М.
Top 10 Linux Job Interview Questions
16:04
tutoriaLinux
Рет қаралды 2,4 МЛН
Memory Leaks on Android
18:36
CodingWithMitch
Рет қаралды 56 М.
Android Performance Tuner deep dive
18:51
Android Developers
Рет қаралды 9 М.
10 Crazy Python Operators That I Rarely Use
11:37
Indently
Рет қаралды 23 М.
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН