[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] build: allow turning off debuginfo
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH] build: allow turning off debuginfo |
Date: |
Fri, 24 Feb 2012 18:52:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120210 Thunderbird/10.0.1 |
On 02/24/12 12:16, Peter Maydell wrote:
> On 24 February 2012 10:39, Gerd Hoffmann <address@hidden> wrote:
>> On 02/08/12 13:54, Gerd Hoffmann wrote:
>>> This patch adds --{enable,disable}-debug-info switches to configure
>>> which allows to include/exclude the '-g' switch on the gcc & ld
>>> command lines. Not building debug info reduces ressource usage
>>> (especially disk) alot and is quite useful for test builds.
>>
>> ping?
>
> We've had this suggested before, haven't we? I quite like the
> existing "just build with -g and strip it later" approach...
> is the resource usage change really that significant?
Disk usage is factor ten:
address@hidden qemu]$ du -sh build-*
1,7G build-debug
173M build-nodebug
Build time is factor two:
[build-debug]
7263.45user 805.85system 3:11:03elapsed 70%CPU (0avgtext+0avgdata
1782576maxresident)k
72784880inputs+13340840outputs (1273066major+29668783minor)pagefaults 0swaps
[build-nodebug]
5329.72user 320.46system 1:34:26elapsed 99%CPU (0avgtext+0avgdata
1542848maxresident)k
116000inputs+755248outputs (255major+16535699minor)pagefaults 0swaps
cheers,
Gerd