| #!/bin/bash |
| # Copyright 2018 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| ### compute some blobfs statistics from the build |
| |
| DEVSHELL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| source "${DEVSHELL_DIR}/lib/vars.sh" |
| fx-config-read |
| |
| case "$(uname -s)" in |
| Linux) |
| PREBUILT_DART="${DEVSHELL_DIR}/../../topaz/tools/prebuilt-dart-sdk/linux-x64/bin/dart" |
| ;; |
| Darwin) |
| PREBUILT_DART="${DEVSHELL_DIR}/../../topaz/tools/prebuilt-dart-sdk/mac-x64/bin/dart" |
| ;; |
| esac |
| |
| cd "${FUCHSIA_BUILD_DIR}" |
| |
| exec "${PREBUILT_DART}" "${DEVSHELL_DIR}/blobstats.dart" "$@" |