#!/usr/bin/gawk -f # -*- tab-width: 4; indent-tabs-mode: t -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # Generate a list of files included by the C++ compiler during the build # sorted by the total bytes an included file contributed to preprocessor input. # usage: first do a full build with "make check", then run this from $BUILDDIR # NOTE: by default gbuild does not generate dependencies for system headers # (in particular the C++ standard library), so those will NOT be counted BEGIN { cmd = "find workdir/Dep/CxxObject/ -name *.d | xargs cat" while ((cmd | getline) > 0) { if ($0 ~ /^ .*\\$/) { gsub(/^ /, ""); gsub(/ *\\$/, ""); includes[$1]++ if ($2) { # GCC emits 2 per line if short enough! includes[$2]++ } } } exit } END { for (inc in includes) { cmd = "wc -c " inc if ((cmd | getline) < 0) print "ERROR on: " cmd sizes[inc] = $1 # $0 is wc -c output, $1 is size totals[inc] = $1 * includes[inc] totalsize += totals[inc] close(cmd) } PROCINFO["sorted_in"] = "@val_num_desc" print "sum total bytes included (excluding system headers): " totalsize for (inc in totals) { print totals[inc], sizes[inc], includes[inc], inc } } # vim: set noet sw=4 ts=4: LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/starmath/inc/pch
AgeCommit message (Expand)Author
2015-02-15boost::scoped_array->std::vectorCaolán McNamara
2015-02-14boost::scoped_ptr->std::unique_ptrCaolán McNamara
2015-02-05Updated all precompiled headers.Ashod Nakashian
2014-10-23Fraction: Revert "fdo#81356: convert Fraction to boost::rational<long> - wip"Jan Holesovsky
2014-10-09fdo#81356: convert Fraction to boost::rational<long> - wipJuan Picca
2014-05-28update_pchThomas Arnhold
2014-04-14update_pchThomas Arnhold
2013-09-05update pchThomas Arnhold
2013-04-25update pchThomas Arnhold
2013-04-20Remove pass-through header file sot/inc/sot/clsids.hxxMichael Dunphy
2013-04-05new module i18nlangtagEike Rathke
2013-03-12update pch headersLuboš Luňák
2013-02-15pch for Library_smLuboš Luňák
2011-11-27remove precompiled_xxx.hxx/cxxNorbert Thiebaud
2011-11-27remove include o pch header from starmathNorbert Thiebaud