Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Android High Performance Programming

You're reading from  Android High Performance Programming

Product type Book
Published in Aug 2016
Publisher Packt
ISBN-13 9781785288951
Pages 412 pages
Edition 1st Edition
Languages
Authors (3):
Emil Atanasov Emil Atanasov
Profile icon Emil Atanasov
Enrique López Mañas Enrique López Mañas
Profile icon Enrique López Mañas
Diego Grancini Diego Grancini
Profile icon Diego Grancini
View More author details

Table of Contents (17) Chapters

Android High Performance Programming
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
1. Introduction: Why High Performance? 2. Efficient Debugging 3. Building Layouts 4. Memory 5. Multithreading 6. Networking 7. Security 8. Optimizing Battery Consumption 9. Native Coding in Android 10. Performance Tips Index

Running a trace


When we have added the trace library to our application, it will block on startup until it can connect to the trace receiver of Android Studio. That means you need to remove the trace library when you are done with the profiler, since it will lead to a useless render.

In order to start a trace, just run and deploy your application. A blank screen will first be prompted while it is waiting for the trace receiver to connect. To enable it, go to the CPU/GPU tab of the DDMS, and click on the red trace button, which you can find on the left side of the GPU tab ().

When the tracing starts, the application unlocks and we can interact with it. When we are done with the tracing, we need to click on the trace button again to stop the tracing process. When the file has been written, it will be opened.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}