Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
adb_proxy/ | 03-May-2024 | - | 695 | 541 | ||
env/ | 03-May-2024 | - | 38 | 6 | ||
libs/virtualList/ | 03-May-2024 | - | 893 | 693 | ||
loaders/ | 03-May-2024 | - | 60 | 31 | ||
spec/ | 03-May-2024 | - | 544 | 468 | ||
src/ | 03-May-2024 | - | 12,571 | 9,717 | ||
static/ | 03-May-2024 | - | 135 | 132 | ||
tests/samples/ | 03-May-2024 | - | ||||
.babelrc | D | 03-May-2024 | 46 | 5 | 5 | |
.eslintrc.json | D | 03-May-2024 | 762 | 35 | 35 | |
.gitignore | D | 03-May-2024 | 101 | 9 | 8 | |
README.md | D | 03-May-2024 | 1.7 KiB | 44 | 36 | |
package.json | D | 03-May-2024 | 2.1 KiB | 72 | 71 | |
trace.sh | D | 03-May-2024 | 2.4 KiB | 85 | 55 | |
tsconfig.json | D | 03-May-2024 | 382 | 22 | 22 | |
vue.config.js | D | 03-May-2024 | 80 | 5 | 5 | |
webpack.config.common.js | D | 03-May-2024 | 3.8 KiB | 150 | 124 | |
webpack.config.dev.js | D | 03-May-2024 | 2 KiB | 73 | 53 | |
webpack.config.js | D | 03-May-2024 | 854 | 26 | 7 | |
webpack.config.prod.js | D | 03-May-2024 | 2.8 KiB | 98 | 75 | |
webpack.spec.config.js | D | 03-May-2024 | 2.8 KiB | 118 | 99 | |
yarn.lock | D | 03-May-2024 | 349.9 KiB | 8,110 | 7,010 |
README.md
1# Tool for visualizing window manager traces 2 3## Developing WinScope 4When the trace is enabled, Window Manager and Surface Flinger capture and 5save current state to a file at each point of interest. 6`frameworks/base/core/proto/android/server/windowmanagertrace.proto` 7and `frameworks/native/services/surfaceflinger/layerproto/layerstrace.proto` 8contain the proto definitions for their internal states. 9 10### Checking out code and setting up environment 11* Install [Yarn](https://yarnpkg.com), a JS package manager 12* [Download Android source](https://source.android.com/setup/build/downloading) 13* Navigate to `development/tools/winscope` 14* Run `yarn install` 15 16### Building & testing changes 17* Navigate to `development/tools/winscope` 18* Run `yarn run dev` 19 20### Update IntDefMapping 21* Build `framework-minus-apex-intdefs` module and a preprocessor will 22generate the latest IntDefMapping. From the `ANDROID_ROOT` run: 23``` 24. build/envsetup.sh 25m framework-minus-apex-intdefs 26``` 27 28* Copy the generated `intDefMapping.json` files to the `prebuilts` repo. 29``` 30python3 -c 'import sys,json,collections; print(json.dumps(collections.OrderedDict(sorted(collections.ChainMap(*map(lambda x:json.load(open(x)), sys.argv[1:])).items())), indent=2))' $(find out/soong/.intermediates/frameworks/base -iname intDefMapping.json) > ./prebuilts/misc/common/winscope/intDefMapping.json 31``` 32 33* Upload the changes. 34``` 35cd ./prebuilts/misc/common/winscope 36repo start intdef-update 37git commit -am "Update intdef mapping" "Test: N/A" 38repo upload --cbr . 39``` 40 41### Building with internal extensions 42Internal paths in vendor/ which are not available in AOSP must be replaced by 43stub files. See getWaylandSafePath for an example 44