Permalink
Browse files

Update release instructions, and fix pyc bytecode metric.

  • Loading branch information...
Andy Chu
Andy Chu committed Mar 2, 2018
1 parent cc91232 commit 347e4703b48d9df1f2f3675e12aa13402596e742
Showing with 9 additions and 4 deletions.
  1. +4 −2 build/metrics.sh
  2. +5 −2 scripts/release.sh
View
@@ -22,18 +22,20 @@ linecount-nativedeps() {
find _tmp/${app_name}-tar-test -name '*.[ch]' | xargs wc -l | sort -n
}
readonly BYTECODE='bytecode-opy'
linecount-pydeps() {
local app_name=${1:-oil}
awk '/\.py$/ { print $1 }' _build/$app_name/bytecode-cpython-manifest.txt |
awk '/\.py$/ { print $1 }' _build/$app_name/${BYTECODE}-manifest.txt |
sort | uniq | xargs wc -l | sort -n
}
# Print table of [num_bytes pyc path]
pyc-bytes() {
local app_name=${1:-oil}
awk '/\.pyc$/ { print $1 }' _build/$app_name/bytecode-cpython-manifest.txt |
awk '/\.pyc$/ { print $1 }' _build/$app_name/${BYTECODE}-manifest.txt |
sort | uniq | xargs wc --bytes | sort -n
}
View
@@ -8,10 +8,13 @@
# $0 build-and-test (builds tarball, runs spec tests, etc.)
# prereq: build/codegen.sh {download,install}-re2c
# test/wild.sh all
# benchmarks/auto.sh all on both flanders and lisa
# benchmarks:
# Sync up oilshell/benchmark-data repo.
# flanders: $0 benchmark-build, then $0 benchmark-run
# - for stability, restart flanders
# - prereq: benchmarks/osh-runtime.sh {download,extract}
# benchmarks/oheap.sh measure
# lisa: $0 benchmark-run, then $0 benchmark-run-on-1-machine (oheap)
# Commit files to oilshell/benchmark-data repo and sync.
# benchmarks/report.sh all
# $0 metrics
# $0 build-tree

0 comments on commit 347e470

Please sign in to comment.