-
Notifications
You must be signed in to change notification settings - Fork 31
Adds debugging tips #65
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with nits. Wonder if we should move this into the existing android guide (see inline comments).
# Debugging Tips | ||
|
||
|
||
### Profiling code snippits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we should move this to android/android_guide.md
in the "Intermediate topics" section? e.g. I was going to add tips for reading the Android source code.
But it might be harder to find the debugging tips because they'd probably be overlooked.
|
||
You easily profile a section of your application programatically starting and stopping the profiler. | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add syntax highlighting:
```kotlin
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Data
to lowercase.
Also, I think it's org.mozilla.app.debug/files/something.trace
, right?
Also, wonder if we should just make it a path: /data/data/org.mozilla.app.debug/...
No description provided.