Add a script to time how long it takes to compile a header inside mapnik
This commit is contained in:
parent
eff087c0cf
commit
e3a1108ebd
1 changed files with 9 additions and 0 deletions
9
scripts/time-header
Executable file
9
scripts/time-header
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
CXXFLAGS="$(./utils/mapnik-config/mapnik-config --cflags)"
|
||||||
|
CXX="$(./utils/mapnik-config/mapnik-config --cxx)"
|
||||||
|
echo "Time taken to compile '$(basename $1)':"
|
||||||
|
time ${CXX} $1 -I./test -I./deps/agg/include -Ideps -I./include $CXXFLAGS -o /tmp/header.out
|
Loading…
Reference in a new issue