• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

adb_proxy/22-Nov-2023-835648

env/22-Nov-2023-386

libs/virtualList/22-Nov-2023-893693

loaders/22-Nov-2023-6031

spec/22-Nov-2023-1,095994

src/22-Nov-2023-14,51711,270

static/22-Nov-2023-135132

tests/samples/22-Nov-2023-

.babelrcD22-Nov-202346 55

.eslintrc.jsonD22-Nov-2023762 3535

.gitignoreD22-Nov-2023101 98

README.mdD22-Nov-20231.7 KiB4436

package.jsonD22-Nov-20232.1 KiB7372

trace.shD22-Nov-20232.5 KiB8656

tsconfig.jsonD22-Nov-2023382 2222

vue.config.jsD22-Nov-202380 55

webpack.config.common.jsD22-Nov-20233.8 KiB150124

webpack.config.dev.jsD22-Nov-20232 KiB7353

webpack.config.jsD22-Nov-2023854 267

webpack.config.prod.jsD22-Nov-20232.8 KiB9875

webpack.spec.config.jsD22-Nov-20232.8 KiB11899

yarn.lockD22-Nov-2023350.7 KiB8,0806,983

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