Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Latest commit

 

History

History
14 lines (9 loc) · 442 Bytes

debugging_tips.md

File metadata and controls

14 lines (9 loc) · 442 Bytes

Debugging Tips

Profiling code snippits

You easily profile a section of your application programatically starting and stopping the profiler.

Debug.startMethodTracingSampling("${context.filesDir}/something.trace", 0, 100)
// Code to profile
Debug.stopMethodTracing()

You can then find the results in the Device File Explorer under the path Data > Data > org.mozilla.app.debug > something.trace and load it in the profiler