summaryrefslogtreecommitdiff
path: root/scripts/build/debug/gdb.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-20 13:48:26 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-20 13:48:26 (GMT)
commit4fb8055bf7165d681dbe7ba5d10d8f98a5043d92 (patch)
treef240fc986f75cb724a2e7d416ea92b89c172c317 /scripts/build/debug/gdb.sh
parent5d2b862edcc5c39e7a336c7a4868701495b5be57 (diff)
Ah! I finally have a progress bar that doesn't stall the build!
- pipe size in Linux is only 8*512=4096 bytes - pipe size is not setable - when the feeding process spits out data faster than the eating process can read it, then the feeding process stalls after 4KiB of data sent to the pipe - for us, the progress bar would spawn a sub-shell every line, and the sub-shell would in turn spawn a 'date' command. Which was sloooww as hell, and would cause some kind of a starvation: the pipe was full most of the time, and the feeding process was stalled all this time. Now, we use internal variables and a little hack based onan offset to determine the elapsed time. Much faster this way, but still CPU-intensive.
Diffstat (limited to 'scripts/build/debug/gdb.sh')
0 files changed, 0 insertions, 0 deletions