eina_btlog: allows continuous running on input, flush when possible.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Tue, 6 Dec 2016 16:00:55 +0000 (14:00 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Tue, 6 Dec 2016 16:06:10 +0000 (14:06 -0200)
commit83425483569bb63528e0616f36006f6ec2cb14fe
treee34b939b6d93cdc15121b567653f14891d15a9c5
parentf0e13ccad9f3508ee994de8ec3018d70c7f21f15
eina_btlog: allows continuous running on input, flush when possible.

eina_btlog will make a table of the backtrace and then must compute
columns length.

However, if not running in such mode (ie: show_compact/-c), we don't
need to queue lines or compute column lengths.

Also, now that we accept non-backtrace lines, like other output
interleaved, then flush the table once such line is found, this will
restart the table columns for the next output, but at least allows
eina_btlog to run on a live output, such as:

       myapp 2>&1 | eina_btlog
src/bin/eina/eina_btlog.c