Age | Commit message (Collapse) | Author |
|
Bug: 31038810
Change-Id: I800eaeae0b7c233d7dcabdbd2479bfb0132eb4ae
|
|
bug:21925298
bug:29643805
bug:30299278
bug:30397774
bug:30953297
Change-Id: I4d73c3c5454541a50703253ebeb63e5b2ea01fec
|
|
Change-Id: Ic610f2da8ecd564d5dd58cbc8b9a738ee74b2a06
|
|
Change-Id: I0b9e15f8d5743811f3a722e7a692e89e7e36734e
Signed-off-by: Zhen Wang <zhenw@google.com>
|
|
Replaced the old method of issuing pre processing commands to the device
in the same popen call, then matching on regular expressions to extract
the data. Now for each pre processing command the command is sent in its
own popen call and has its own parsing function.
Added code to look for tgis in procfs on the device. The kernel
provides a mechanism to map TGIDS to PIDs but the buffer easily gets
overrun. This is a host side fix to try and patch up as many missing
TGIDS as possible
|
|
- Add BootAgent, which is an AtraceAgent specializing in tracing
the boot sequence, and its test.
- Add --boot option. This sets persist.debug.atrace.boottrace
property, which triggers atrace during boot, writes categories
to /data/local/tmp/boottracecategories, which is used by atrace
as enabled categories, and reboots the device. Once the device
has booted up, the report is created by the user hitting
Ctrl+C.
BUG: 21739901
Change-Id: I5e27a402f3d32cb151227d3d222c05da39eca28c
|
|
It seems systrace-legacy.py had not maintained for a while and has some
bugs and missing features.
So implement atrace_legacy_agent to use legacy platforms.
Change-Id: I9a60c4d9899cff5d088d00c8be643493fc163272
Signed-off-by: Young-Ho Cha <ganadist@gmail.com>
|
|
Refactor systrace so it is easier to add additional tracing method.
Change-Id: If74b5dd75cb1a1fcfdc0012b01452a56d776966a
Signed-off-by: Zhen Wang <zhenw@google.com>
|
|
Change-Id: Ia4a636a6e019c91db5e1d49ea99d0706520ea32a
Signed-off-by: Zhen Wang <zhenw@google.com>
|
|
The previous implementation used the python select command,
which only works on network sockets in Windows.
Fixed CR/LF stripping to work on windows.
Added a progress indicator that shows while data is being collected.
Change-Id: I1b39dde8e73956eef57eebf489e611f23ee6a7c6
|
|
Change-Id: I65adc7a723e18994c161df7cd995cf5a950115ae
|
|
Split main into smaller functions for improved readability.
This is in preparation for adding support for Windows.
Change-Id: I4786821b0350fd937e4b5d21a4ced7b7e154edc1
|
|
Print better error messages when adb fails. The output from
adb is displayed so any problems are easier to debug.
Also added the device serial number parameter when calling
adb to get the list of available trace categories.
Change-Id: I77229ca39988d034be33b9363f7e9b882468eddd
|
|
Added an option to download the trace data in plain text,
instead of in zipped form (--no-compress). This may be
necessary if the zipped trace data contains embedded
CR+LF sequences. This could be a problem in theory, but
in practice this either never happens or is very infrequent.
This is also a handy option to use when debugging this script
and it's communication with adb.
Change-Id: I814e883424234c1e0284459b229447dea0c1a410
|
|
This script uses Python features introduced in version 2.7. The script
will now exit with an error if run with a version prior to 2.7.
Change-Id: I8edaee119b773c57ad7e1725d2ff0f5e42fbd756
|
|
Added a few comments and cleaned up most lint warnings.
I was not able to fix lint warnings about the interpreter and
copyright blocks (pylint comments to disable those warnings also did not work).
I left in a few warnings in code that is being substantially changed as
part of another CL.
Change-Id: I365d8caeb264521c45b5995a24951b0da8eb4c29
|
|
Such traces can become inconsistent because the trace buffers
are kept per CPU. To work around this the prefix of the trace
where not all CPUs have data yet are discarded.
Bug: 21037114
Bug: 19437218
Change-Id: I8e0c5d5eab89a81691a3dfe485b62f76c7c1535c
|
|
Accept any number of spaces between the headers of the ps command
because they are not stable across Android versions.
Bug: 20160776
Change-Id: Ib5737036d26bfd4675508b802a054c1a0358e56a
|
|
bug:20657957
Change-Id: I56f9be987c79f623ee57c2a0c8571e9444602a2d
|
|
|
|
Change-Id: Iab60ac8a6552a5ebef5749ea2b743d616cd708ec
|
|
The current design of systrace can only process traces from one tracer, atrace.
This change makes it possible to import multiple tracers that can be stored in
the trace.html output. Each trace is now stored as a script tag with class
"trace-data".
This patch also simplifies storing traces in the trace.html output. Instead of
storing traces in a javascript variable, they are now simply stored as scripts
with type "application/text".
Change-Id: I39efd7e1a512fb37f84ff0c7ef6105e13bf1491b
|
|
Change-Id: I179eb5ae88f7f4e1992ad4de0e67ae3ac30e58cb
|
|
Upstream trace viewer has changed substantially since last pull.
First, the old flattening into js + css + html workflow has been replaced with
a new flatten into single html file workflow.
Second, trace viewer has moved to git.
Some pieces that were previously only in systrace are now upstream as well.
In particular, minification is now upstream. Thus, the minifying features in
systrace can be removed.
Change-Id: Ibc6a46fa3dccff8b771a95aae1909cf178157264
|
|
When a large number of threads are active, the kernel may
start to report <...> as the name of a thread in the trace
buffer which is rather unhelpful.
This change uses information from 'ps -t' to fix thread names
when they are absent or truncated. Use the '--no-fix-threads'
option to disable this feature.
Change-Id: I6566e557eeac33311ff5d4c6e95ff010cb83a0d6
|
|
The Monitor tool in SDK has a duplicate copy of the prefix and suffix
html blocks, which necessitates changes in both places whenever the
prefix block changes. Moving the html out of the script allows
Monitor to reuse the same content.
Change-Id: I012df9ef3423b546a2ced213bee1ccbba9d4c9cc
|
|
Change-Id: I56fd37959b15653100a6add274c066c4359d55f0
|
|
Change-Id: Ic0f4890d450541736f5909273cabcbad2ba3e3fe
|
|
This change re-adds the old Systrace script from before JB MR2 and exec's it
from systrace.py when it detects that the device's SDK-version is less than 18.
This change also modifies the pre-JB-MR2 script to generate HTML that is
compatible with the latest script.js and style.css.
Change-Id: I29c3327e95f8fd0a4aab730845abac84e66848ef
|
|
This change fixes a bug where systrace.py would neglect to read the end of the
data coming from its subprocess pipe. This caused the --from-file argument to
produce HTML files containing truncated traces.
Change-Id: I265c9000ceff27debe2965a402fead4ff7ff8644
|
|
Change-Id: I7a446c7604ea29ffd58e59114b646720f97bdc85
|
|
Change-Id: I93d10fb3c526c3cbe6a19220b489bb327bb3146b
|
|
Change-Id: I3ebd2235f528d2eae22256027ca547d85d9a0904
|
|
This change cleans up the trace data processing part of systrace.py. It also
makes the CRLF handling auto-detect the line endings of the incoming data.
Bug: 8327984
Change-Id: Ibc43f50a258ace99c09a539478c2c270e2d0a087
|
|
Change-Id: Iefc5c5dcb3bc1886c7a660b06e715868c91bafbd
|
|
This change updates systrace.py to use the new command line args supported by
the atrace on-device binary.
Change-Id: Ic045db52196fde4b27c535cdb5946158fe6ff0bf
|
|
Change-Id: I58f210f3f67a2de92b93829856c9a969906946c3
|
|
Change-Id: I33b09e49bfdb0413c710a77e37847b7b96e82259
|
|
This changes replaces the use of the Chromium trace viewer code with that of
the trace-viewer project (essentially the Chromium code factored out into its
own project). It updates the update.py script to pull the source from there
and adds an argument to systrace.py to use linked assets from a different
directory to facilitate development of trace-viewer code using systrace to
test.
Change-Id: I5c5a4ce336ce82cd07f1f42e97d4b4cb918ec17a
|
|
- allows systrace with multiple devices
- -s is already taken :(
Change-Id: I7abbc42fb57b68b5fa0405b8c664c2abf7585e2e
|
|
* commit '1f5d4e97822266b682a8a599b532b3b6460f9e3f':
systrace: handle user builds more gracefully
|
|
This change adds an indication of which command line args require root to the
--help output. It also defers opening the output file until after the trace
has actual started being dumped so that if atrace exits with an error the
output file is not truncated.
Bug: 6513400
Change-Id: Ifa0ed1d3d5eef891fee7d9109c2bb988b03c2e4d
|
|
Change-Id: Idb45cad8aceed00ff957f8506081f877d39cf1a6
|
|
Bug: 6488845
Change-Id: Id072d3deb557a285fe5dd12d0f5b4f335a524e3f
|
|
Extract the various event definitions into a table instead of a
switch statement.
Add a --link-assets option to systrace.py to generate a trace.html
file that has the CSS and JS assets linked in rather than embedded,
which is useful for debugging purposes.
Fixed a bug in the tests for lineRE.
Bug: 6488845
Change-Id: I90634f7144fa0a050b911bb9854e5d5662dd6330
|
|
Change-Id: I29d6d1fbf84668d003941e0d79fedb7d9e9c0ea2
|
|
Change-Id: Ie326b4bd8647cda55501a9635f50bc2b2c69147a
|
|
This change moves the initialization Javascript code out of the HTML portion of
systrace.py and into init.js. This new Javascript file is then included in the
Javascript minification.
Change-Id: I3a474331a5970309b8166b57b52789932283c6b1
|
|
This change adds the -i and --cpu-idle flags to systrace.py to enable tracing
of CPU idle events in the kernel.
Change-Id: I668718c3abd07fe9b5fa19871c36e83267017caf
|
|
Change-Id: I0e39443eec7420b21827d3255b985028fee09b92
|