From e3a1108ebd52b2279b8f47336db465bab7180795 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 16 Dec 2015 13:01:56 -0800 Subject: [PATCH] Add a script to time how long it takes to compile a header inside mapnik --- scripts/time-header | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/time-header diff --git a/scripts/time-header b/scripts/time-header new file mode 100755 index 000000000..97c3c6977 --- /dev/null +++ b/scripts/time-header @@ -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 \ No newline at end of file