Frozen objects don't trigger Vue's reactive Observers and are significantly faster. With this changes, winscope can now load traces with over 100mb
Bug: 211049519
Test: build winscope and open a large trace
Change-Id: Iec9f91e408db734ce884cf846d5c2826ff346484
This speeds up winscope by parsing each state only when necessary
Bug: 211049519
Test: build winscope and open a trace
Change-Id: I35e362ebcb7927887b2793697037984fa26de61c
Use new class to share device auth states, adb proxy
state and expose functions to talk to proxy.
This is the first step before adding new functionality to
winscope that will convert transaction traces to
layer traces. This functionality needs to be added in
DataInput.vue so this class will make it easier to read
the proxy state and use the proxy.
There should be no functional change in this cl.
Test: collect winscope traces via proxy
Bug: 200284593
Change-Id: Ic1f492ebec6c8dfd667d0828bb2d6779665b89c2
Merged-In: Ic1f492ebec6c8dfd667d0828bb2d6779665b89c2
(cherry picked from commit f89a0fbaa9)
Even if some failures occur.
For example, a zip file with an mp4 recorded via MediaProjection
doesn't include the winscope metadata (b/140855415), but the trace
files within the zip should be nevertheless readable
Bug: 209843622
Test: build winscope and open a zip trace
Change-Id: I897ae5e1e0ea3d524c67d90318f9e63f80c6ce54
Currently we print only 1 reason and this makes debugging issues harder
Bug: 210476324
Test: compile winscope and dump a trace, check if multiple reasons for
invisible layers appear
Change-Id: Ia755c001a32a8bdcae3d8a31365ff1cfde28bb2f
Push specific licenses down the tree toward the leaf directories.
Remove extra Apache 2.0 license texts--just use Android-Apache-2.0
Test: m nothing
Change-Id: Ibee25f75f5933699d6f43acdc192b2ada6823757
Traces take longer to be dumped and ready so we need to wait longer before the winscope_status is provided
Bug: 213372602
Test: Record a long trace and check that the proxy doesn't crash
Change-Id: I0a2aa9bfb667bdad3c909dabbc42b8e111cd3a16
Keep previous implementation as "transactions (legacy)"
The proxy is not yet able to generate traces because no
adb command is available at the moment.
Known issues:
- Enum fields are not translated into values in Winscope
(only IntDef support)
Prepare the codebase for the new SF transaction tracing
Bug: 167521734
Test: run winscope and collect a transactions trace
Change-Id: Ie489ee1a63056377c1699e14df8de975c2978085
There are 2 types of object whose properties can appear in the property
list: Flicker objects (WM/SF traces) and dictionaries
(IME/Accessibilty/Transactions).
While flicker objects have their properties directly in the main object,
those created by a call to the transform function have their properties
inside an obj property.
This CL makes flicker support both implementations
Bug: 167521734
Bug: 209452852
Test: run winscope and collect a transactions trace
Change-Id: I7103ef078cf62331fd45c45fd238173232993f47
Previously `false` and `0` were ignored even when "Show defaults"
checkbox was marked.
Bug: 176906864
Test: build winscope, take a trace, mark show defaults, check if false
values appear on the property list
Change-Id: Ia114eea91c677e92f0bf4edd4a9e9107e014d90e
Bug: 140855415
Test: build winscope, take a SF trace and check if the isVirtual flag
appears on the display
Change-Id: I5f6e5dba9f73f3464371166fb7ec8b589c3859c3
This filter previously removed the information from all objects,
including SF displays
Bug: 140855415
Test: build winscope, compile a trace, check if name is visible
Change-Id: I62563595298f70444333289a2a22635aca43c265
Make sure loading spinner is center aligned
Ensure the size of dropbox remains the same before and while loaded so it doesn't look like it's flickering
Make dropbox clickable to allow for intuitive clicking of dropbox area to open file viewer
Bug: 206214877
Change-Id: Icc5c2bdfce9fd26c3ff6f040f85a289859cfd3ca
Currently only one property can be searched at a time
Test: build winscope, record a transaction log and select fields to
filter
Bug: 159619726
Change-Id: I9712ca9a9ddc11e20d44e7c5c671803de386f368
Property and element search should be case insensitive
Test: build winscope, open a trace, filter layer or property by name
Bug: 203240981
Change-Id: I91575d550b3812b6a893136e965b0f1672389ab7
Can now set the buffer sizes for these two traces, as well as set
tracing level and type for WM. Tested for multiple combinations of
config settings, as well as if settings are left as
placeholders/selected as the name of the config.
Bug: b/200159899
Test: Run a SF/WM trace with arbitrary config settings and check that all loads as normal.
Merged-In: I50ccc271bd2f90dba1d22c3e8c568490c4bf831f
Change-Id: I50ccc271bd2f90dba1d22c3e8c568490c4bf831f
(cherry picked from commit 9d3f674027)
Add analytics in winscope to know which trace types are being used, and which properties/element types are being expanded, to obtain data about their relevance
Test: yarn run build and test winscope
Change-Id: Icc7b0558c44e7bac8dcd9b140321a5c5b2bee403
So that these can be built independently from the large sdk zip. The old
Make-based implementation created this as part of the large sdk zip,
then extracted it from that zip file.
This topic only adds the new definitions under a different filename,
full replacement will come in a follow-on CL.
Once we fully transitions to this mechanism, we'll be able to turn down
most modules on Macs, only building these and their dependencies.
Bug: 187222815
Change-Id: If6be8dd573a323ef8b343bc86116ffa3d43922a5
When tracing WM in critical mode, the children object is not always
assigned and this previously crashed the WM trace parsing in winscope.
Fix the WM trace parsing by assuming all null children as empty arrays
Test: run winscope, collect critical trace, open critical trace in
winscope
Change-Id: Ib98c820969df56eee822fedc66897deb600857e7
This change is adding Chrome Wayland logs to Winscope. The logs are
created by Winscope and shown on it. Since Wayland logs have been
already compatible with Winscope, this change adds some configs to
existing ones. Also, "Wayland" option is only visible when we connect
ARC, so Android users don't need to pay attention to conflicts.
Bug: 201374806
Test: manual by follow steps
1) Start tracing by choosing "Wayland" and clicking "START TRACE" on Winscope.
2) End tracing by clicking "END TRACE".
3) See if the insets logs are available.
4) Check if "Wayland" option is only visible when we connect ARC.
Change-Id: Ibfb5564a32c75929b449915a75db23ae3cd6447e