mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
introduce ninjalog_uploader to autoninja
This CL introduces ninjalog_uploader to autoninja for posix environment. This is to collect build statistics from googler to find user side build performance bottleneck. ninjalog_uploader_wrapper is used to notify user and manage small config of upload script. Bug: 900161 Change-Id: I48ac8cd1d52f64e8fdafaec43636d2d79ef9040d Reviewed-on: https://chromium-review.googlesource.com/c/1345255 Reviewed-by: Dirk Pranke <dpranke@chromium.org> Reviewed-by: Shinya Kawanaka <shinyak@chromium.org> Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
This commit is contained in:
@@ -16,9 +16,11 @@ if eval "$command"; then
|
||||
if [ "$NINJA_SUMMARIZE_BUILD" == "1" ]; then
|
||||
python "$(dirname -- "$0")/post_build_ninja_summary.py" "$@"
|
||||
fi
|
||||
|
||||
# Collect ninjalog from googler.
|
||||
"$(dirname -- "$0")/ninjalog_uploader_wrapper.py" --cmd $command
|
||||
exit
|
||||
fi
|
||||
# Return an error code of 1 so that if a developer types:
|
||||
# "autoninja chrome && chrome" then chrome won't run if the build fails.
|
||||
exit 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user