Display the size of $BUILD_DIR for stats
Displaying the size of /, but excluding other filesystems is not good if BUILD_DIR is on another filesystem. Furthermore, when doing stats, the DESTDIR is inside $BUILD_DIR, so the full size is recorded. The only thing that is not recorded is if the build system downloads files to the user's home (cargo, maven, ...).
This commit is contained in:
parent
fd4a7982f2
commit
59c4761950
2 changed files with 8 additions and 8 deletions
|
@ -195,7 +195,7 @@ echo Time before install: ${SECONDS} >> $INFOLOG</xsl:text>
|
|||
<xsl:text>
|
||||
|
||||
echo Time after install: ${SECONDS} >> $INFOLOG
|
||||
echo Size after install: $(sudo du -skx --exclude home /) >> $INFOLOG
|
||||
echo Size after install: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG
|
||||
</xsl:text>
|
||||
<xsl:if test="$root-seen">
|
||||
<xsl:call-template name="begin-root"/>
|
||||
|
@ -459,7 +459,7 @@ echo Size after install: $(sudo du -skx --exclude home /) >> $INFOLOG
|
|||
<xsl:text>
|
||||
|
||||
echo Time after make: ${SECONDS} >> $INFOLOG
|
||||
echo Size after make: $(sudo du -skx --exclude home /) >> $INFOLOG</xsl:text>
|
||||
echo Size after make: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -506,7 +506,7 @@ wrapInstall '</xsl:text>
|
|||
<xsl:text>
|
||||
|
||||
echo Time after doc: ${SECONDS} >> $INFOLOG
|
||||
echo Size after doc: $(sudo du -skx --exclude home /) >> $INFOLOG</xsl:text>
|
||||
echo Size after doc: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -516,7 +516,7 @@ echo Size after doc: $(sudo du -skx --exclude home /) >> $INFOLOG</xsl:text>
|
|||
<xsl:text>
|
||||
|
||||
echo Time after test: ${SECONDS} >> $INFOLOG
|
||||
echo Size after test: $(sudo du -skx --exclude home /) >> $INFOLOG</xsl:text>
|
||||
echo Size after test: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
|
|
@ -200,7 +200,7 @@ find . -maxdepth 1 -mindepth 1 -type d | xargs </xsl:text>
|
|||
<!-- If stats are requested, insert the start size -->
|
||||
<xsl:if test="$want-stats">
|
||||
<xsl:text>
|
||||
echo Start Size: $(sudo du -skx --exclude home /) >> $INFOLOG
|
||||
echo Start Size: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG
|
||||
</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
|
@ -675,7 +675,7 @@ popd</xsl:text>
|
|||
<xsl:text>
|
||||
|
||||
echo Time after make: ${SECONDS} >> $INFOLOG
|
||||
echo Size after make: $(sudo du -skx --exclude home /) >> $INFOLOG
|
||||
echo Size after make: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG
|
||||
echo Time before test: ${SECONDS} >> $INFOLOG
|
||||
|
||||
</xsl:text>
|
||||
|
@ -707,7 +707,7 @@ echo Time before test: ${SECONDS} >> $INFOLOG
|
|||
<xsl:text>
|
||||
|
||||
echo Time after test: ${SECONDS} >> $INFOLOG
|
||||
echo Size after test: $(sudo du -skx --exclude home /) >> $INFOLOG
|
||||
echo Size after test: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG
|
||||
echo Time before install: ${SECONDS} >> $INFOLOG
|
||||
</xsl:text>
|
||||
</xsl:if>
|
||||
|
@ -789,7 +789,7 @@ echo Time before install: ${SECONDS} >> $INFOLOG
|
|||
<xsl:text>
|
||||
|
||||
echo Time after install: ${SECONDS} >> $INFOLOG
|
||||
echo Size after install: $(sudo du -skx --exclude home /) >> $INFOLOG
|
||||
echo Size after install: $(sudo du -skx --exclude home $BUILD_DIR) >> $INFOLOG
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Reference in a new issue