diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index c9f0d093a97dbc492a51992a0ce3cecc039fa400..5c2309164dd026d753e40e5ddf351842f4f48249 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -364,8 +364,11 @@ EOF cp -r paddle_inference_install_dir paddle_inference tar -czf paddle_inference.tgz paddle_inference buildSize=$(du -h --max-depth=0 ${PADDLE_ROOT}/build/paddle_inference.tgz |awk '{print $1}') + soLibSize=$(du -h --max-depth=0 ${PADDLE_ROOT}/build/paddle_inference_install_dir/paddle/lib/libpaddle_inference.so |awk '{print $1}') echo "Paddle_Inference Size: $buildSize" + echo "Paddle_Inference Dynamic Library Size: $soLibSize" echo "ipipe_log_param_Paddle_Inference_Size: $buildSize" >> ${PADDLE_ROOT}/build/build_summary.txt + echo "ipipe_log_param_Paddle_Inference_So_Size: $soLibSize" >> ${PADDLE_ROOT}/build/build_summary.txt elif [ "$1" == "paddle_inference_c" ]; then cd ${PADDLE_ROOT}/build cp -r paddle_inference_c_install_dir paddle_inference_c