Commit fa507296 by Jamie Madill Committed by Commit Bot

Update trace capture workflow doc.

Makes a lot common between Linux and Windows using git bash. Bug: angleproject:4620 Change-Id: I68cf8ac0fb43bc9c21d07ae3abecf5ca0358261c Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2189814 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com>
parent 38780ae3
# ANGLE Restricted Traces # ANGLE Restricted Traces
The files in this directory are traces of real applications. We host them The files in this directory are traces of real applications. We host them
internally because they may contain third party IP which we don't want internally because they may contain third party IP which we don't want
to share publicly. to share publicly.
...@@ -9,9 +9,6 @@ to share publicly. ...@@ -9,9 +9,6 @@ to share publicly.
In order to compile and run with these, you must be granted access by Google, In order to compile and run with these, you must be granted access by Google,
then authenticate with the cloud with your @google account: then authenticate with the cloud with your @google account:
``` ```
gcloud auth login
```
```
download_from_google_storage --config download_from_google_storage --config
<enter 0 for the project ID> <enter 0 for the project ID>
``` ```
...@@ -40,78 +37,50 @@ out/Release/angle_perftests --gtest_filter=TracePerfTest* ...@@ -40,78 +37,50 @@ out/Release/angle_perftests --gtest_filter=TracePerfTest*
## Updating traces ## Updating traces
The Manhattan and TRex traces were captured on Windows with an Intel driver (due to better compressed texture support). The Manhattan and TRex traces were captured on Windows after building gfxbench from source. We run capture commands in git bash.
Update START and END for each range. ### Windows prep
### Windows Launch git bash via the 'git bash' command or via the start menu. Then run:
``` ```
cd gfxbench\out\install\vs2017-x64\lib export PLATFORM=vs2019-x64
python ..\..\..\..\scripts\refresh_angle_libs.py --verbose export TFW_PACKAGE_DIR=../../../build/vs2019-x64/testfw/tfw-dev
set TFW_PACKAGE_DIR=../../../build/vs2017-x64/testfw/tfw-dev export ANGLE_DEFAULT_PLATFORM=vulkan
set ANGLE_DEFAULT_PLATFORM=vulkan
# TRex
set START=200
set END=210
set LABEL=trex
mkdir ..\..\..\..\..\angle\src\tests\perf_tests\restricted_traces\%LABEL%_%START%
set ANGLE_CAPTURE_LABEL=%LABEL%_%START%
set ANGLE_CAPTURE_FRAME_START=%START%
set ANGLE_CAPTURE_FRAME_END=%END%
set ANGLE_CAPTURE_OUT_DIR=..\..\..\..\..\angle\src\tests\perf_tests\restricted_traces\%LABEL%_%START%
..\bin\testfw_app.exe -b ../../../build/vs2017-x64/testfw/tfw-dev --gfx egl -w 1920 -h 1080 -t gl_trex --ei -frame_step_time=40
# Manhattan
set START=10
set END=20
set LABEL=manhattan
mkdir ..\..\..\..\..\angle\src\tests\perf_tests\restricted_traces\%LABEL%_%START%
set ANGLE_CAPTURE_LABEL=%LABEL%_%START%
set ANGLE_CAPTURE_FRAME_START=%START%
set ANGLE_CAPTURE_FRAME_END=%END%
set ANGLE_CAPTURE_OUT_DIR=..\..\..\..\..\angle\src\tests\perf_tests\restricted_traces\%LABEL%_%START%
..\bin\testfw_app.exe -b ../../../build/vs2017-x64/testfw/tfw-dev --gfx egl -w 1920 -h 1080 -t gl_manhattan --ei -frame_step_time=40
``` ```
### Linux ### Linux prep
``` ```
cd gfxbench/out/install/linux/lib
python ../../../../scripts/refresh_angle_libs.py --verbose
export PLATFORM=linux export PLATFORM=linux
export LD_LIBRARY_PATH=.
export TFW_PACKAGE_DIR=../../../build/linux/testfw_Release/tfw-dev export TFW_PACKAGE_DIR=../../../build/linux/testfw_Release/tfw-dev
export ANGLE_DEFAULT_PLATFORM=vulkan export ANGLE_DEFAULT_PLATFORM=vulkan
export LD_LIBRARY_PATH=. ```
### Capturing from gfxbench
First start from the gfxbench source directory.
```
cd out/install/$PLATFORM/lib
python ../../../../scripts/refresh_angle_libs.py
# TRex # TRex
export START=200 mkdir -p ../../../../../angle/src/tests/perf_tests/restricted_traces/trex_200
export END=210 ANGLE_CAPTURE_OUT_DIR=../../../../../angle/src/tests/perf_tests/restricted_traces/trex_200 ANGLE_CAPTURE_FRAME_START=200 ANGLE_CAPTURE_FRAME_END=210 ANGLE_CAPTURE_LABEL=trex_200 ../bin/testfw_app -b $TFW_PACKAGE_DIR --gfx egl -w 1920 -h 1080 -t gl_trex --ei -frame_step_time=40
export LABEL=trex
mkdir -p ../../../../../angle/src/tests/perf_tests/restricted_traces/${LABEL}_${START}
export ANGLE_CAPTURE_LABEL=${LABEL}_${START}
export ANGLE_CAPTURE_FRAME_START=$START
export ANGLE_CAPTURE_FRAME_END=$END
export ANGLE_CAPTURE_OUT_DIR=../../../../../angle/src/tests/perf_tests/restricted_traces/${LABEL}_${START}
../bin/testfw_app -b $TFW_PACKAGE_DIR --gfx egl -w 1920 -h 1080 -t gl_trex --ei -frame_step_time=40
# Manhattan # Manhattan
export START=10 mkdir -p ../../../../../angle/src/tests/perf_tests/restricted_traces/manhattan_10
export END=20 ANGLE_CAPTURE_OUT_DIR=../../../../../angle/src/tests/perf_tests/restricted_traces/manhattan_10 ANGLE_CAPTURE_FRAME_START=10 ANGLE_CAPTURE_FRAME_END=20 ANGLE_CAPTURE_LABEL=manhattan_10 ../bin/testfw_app -b $TFW_PACKAGE_DIR --gfx egl -w 1920 -h 1080 -t gl_manhattan --ei -frame_step_time=40
export LABEL=manhattan
mkdir -p ../../../../../angle/src/tests/perf_tests/restricted_traces/${LABEL}_${START}
export ANGLE_CAPTURE_LABEL=${LABEL}_${START}
export ANGLE_CAPTURE_FRAME_START=$START
export ANGLE_CAPTURE_FRAME_END=$END
export ANGLE_CAPTURE_OUT_DIR=../../../../../angle/src/tests/perf_tests/restricted_traces/${LABEL}_${START}
../bin/testfw_app -b $TFW_PACKAGE_DIR --gfx egl -w 1920 -h 1080 -t gl_manhattan --ei -frame_step_time=40
``` ```
## Upload to the cloud ## Upload to the cloud
Starting from you ANGLE root directory:
``` ```
cd ~/chromium/src/third_party/angle/src/tests/perf_tests/restricted_traces cd src/tests/perf_tests/restricted_traces
upload_to_google_storage.py --bucket chrome-angle-capture-binaries --archive trex_200 upload_to_google_storage.py --bucket chrome-angle-capture-binaries --archive trex_200
upload_to_google_storage.py --bucket chrome-angle-capture-binaries --archive manhattan_10 upload_to_google_storage.py --bucket chrome-angle-capture-binaries --archive manhattan_10
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment