You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker
7ee447c011
|
4 months ago | |
---|---|---|
.. | ||
adb_proxy | 4 months ago | |
env | 4 months ago | |
libs/virtualList | 4 months ago | |
loaders | 4 months ago | |
spec | 4 months ago | |
src | 4 months ago | |
static | 4 months ago | |
tests/samples | 4 months ago | |
.babelrc | 4 months ago | |
.eslintrc.json | 4 months ago | |
README.md | 4 months ago | |
package.json | 4 months ago | |
trace.sh | 4 months ago | |
tsconfig.json | 4 months ago | |
vue.config.js | 4 months ago | |
webpack.config.common.js | 4 months ago | |
webpack.config.dev.js | 4 months ago | |
webpack.config.js | 4 months ago | |
webpack.config.prod.js | 4 months ago | |
webpack.spec.config.js | 4 months ago | |
yarn.lock | 4 months ago |
README.md
Tool for visualizing window manager traces
Developing WinScope
When the trace is enabled, Window Manager and Surface Flinger capture and
save current state to a file at each point of interest.
frameworks/base/core/proto/android/server/windowmanagertrace.proto
and frameworks/native/services/surfaceflinger/layerproto/layerstrace.proto
contain the proto definitions for their internal states.
Checking out code and setting up environment
- Install Yarn, a JS package manager
- Download Android source
- Navigate to
development/tools/winscope
- Run
yarn install
Building & testing changes
- Navigate to
development/tools/winscope
- Run
yarn run dev
Update IntDefMapping
- Build
framework-minus-apex-intdefs
module and a preprocessor will generate the latest IntDefMapping. From theANDROID_ROOT
run:
. build/envsetup.sh
m framework-minus-apex-intdefs
- Copy the generated
intDefMapping.json
files to theprebuilts
repo.
python3 -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
- Upload the changes.
cd ./prebuilts/misc/common/winscope
repo start intdef-update
git commit -am "Update intdef mapping" "Test: N/A"
repo upload --cbr .
Building with internal extensions
Internal paths in vendor/ which are not available in AOSP must be replaced by stub files. See getWaylandSafePath for an example