podman/hack
Valentin Rothberg aa28dbbf88 analyse package sizes
Analyse the size of all go-packages used during the build process via
the newly added `hack/analyses/go-archive-analysis.sh` script.  The
script expects the `WORK` environment variable to be set, which points
to a temporary work directory generated by `go build`.  To generate such
a work directory, set the `BUILDFLAGS="-work -a"`:

 * `-work` for creating the work directory
 * `-a` to force rebuilding all packages even when already cached

The workflow may look as follows:

```
$ BUILDFLAGS="-work -a" make podman
[...]
WORK=/tmp/go-build127001249
$ WORK=/tmp/go-build127001249 ./hack/analyses/go-archive-analysis.sh
```

The output of the script has the format `$SIZE $PACKAGE` where $SIZE is
the size of the compiled version of the go package (i.e., `.a` file) and
$PACKAGE for the corresponding package, for instance, `math/big` for a
stdlib package or vendor/...  for vendored packages.

Credits to the authors of https://github.com/jondot/goweight, which
inspired this work.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-07-16 14:16:16 +02:00
..
analyses analyse package sizes 2019-07-16 14:16:16 +02:00
apparmor_tag.sh AppArmor: runtime check if it's enabled on the host 2018-07-23 18:11:09 +00:00
btrfs_installed_tag.sh Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
btrfs_tag.sh Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
get_ci_vm.sh Cirrus: Add support for testing F30 2019-06-14 13:41:58 -04:00
install_catatonit.sh add container-init support 2019-01-04 11:42:03 +01:00
libdm_tag.sh Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
man-page-checker man pages - consistency fixes 2019-03-20 14:37:59 -06:00
ostree_tag.sh build: enable ostree in containers/storage when available 2018-07-11 17:26:21 +00:00
podman-commands.sh CI check for --help vs man pages: usability fix 2019-04-08 08:17:13 -06:00
release.sh hack/release.sh: Add a guard against -dev suffixes for argv[2] 2018-06-10 10:51:11 +00:00
selinux_tag.sh Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
systemd_tag.sh Add `systemd` build tag 2019-05-13 14:00:27 +02:00
tree_status.sh Cirrus: Add check for make varlink_api_generate 2019-05-03 15:04:48 -04:00