-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create usage example #44
Comments
options for extrace:
and here is the list of supported categories for android and kernel:
|
at first we need to collect some information for our future report. We will constantly extend command to involve more parameters. we need to specify pid and package that we want to trace. Let's choose them from
let's choose calendar (2066) or dialer (2045) |
let's try to get some output specific for calendar:
calendar doesn't give any output. Maybe it's better to use dialer for illustration:
|
this is what we get:
this records are provided by atrace. Application just uses some properties to turn this logging on. |
let's add also
|
now we get a lot of records from kernel using
|
now let's try what kind of events could be get from, for example,
|
we get some more interesting android events:
|
let's add memory measurements and as it is our last extension for now, we will save trace output to file /data/out. We will specify pid for dialer 2045.
|
the above command also outputs first interpretation (parsing of trace records):
here we can see that process was running dureing build of DrawingCache and then went to sleep for a bit of time. Then again woke up to commit and again went to sleep releasing some memory. |
now it's possible to filter created output using this command, for example, to show only high cpu usage:
|
unfortunately CPU didn't go more than 2 % in this example, so command above will make blank output. |
last thing that we could try is to use memory limit for Uss or Unique set size as so:
this command will take first record with memory and based on it find records that have at least 10 K gain. |
we get some records even for 100 K. For example, like that:
|
by increasing memory limit constantly it's possible to find out that maximum was 344:
|
create and describe procedure to make some meaningful output
The text was updated successfully, but these errors were encountered: