[mythtv-commits] mythtv branch devel/logging updated by danielk. v0.27-pre2-786-g2965966

Git Repo Owner noreply at mythtv.org
Sat Apr 27 18:41:34 UTC 2013


The branch, devel/logging has been updated on the
mythtv repository by gitolite user danielk.
       via  2965966105d2a53f083edbf696f0d077fd19649e (commit)
       via  19a509d07846d2d74ae726cadff6353d11e3dca3 (commit)
       via  94be92f68fcca43564e4f5bfb5d9e15d52e85503 (commit)
      from  3855142c843484b32d884df006e8261015062446 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2965966105d2a53f083edbf696f0d077fd19649e
Author:    Daniel Kristjansson <danielk at cuymedia.net> at Sat, 27 Apr 2013 14:32:47 -0400
Committer: Daniel Kristjansson <danielk at cuymedia.net> at Sat, 27 Apr 2013 14:38:13 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=2965966105d2a53f083edbf696f0d077fd19649e

Add log benchmarking.
This adds two small benchmarks.
One for calling LOG() with a simple message.
Another for logging messages actually making it to the log.

This also uses the wait_for_log_thread_completion()
function developed for the latter benchmark to speed
up the unit tests.



commit 19a509d07846d2d74ae726cadff6353d11e3dca3
Author:    Daniel Kristjansson <danielk at cuymedia.net> at Sat, 27 Apr 2013 14:28:26 -0400
Committer: Daniel Kristjansson <danielk at cuymedia.net> at Sat, 27 Apr 2013 14:38:13 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=19a509d07846d2d74ae726cadff6353d11e3dca3

Add check for unnecessary work in log macro.



commit 94be92f68fcca43564e4f5bfb5d9e15d52e85503
Author:    Daniel Kristjansson <danielk at cuymedia.net> at Tue, 23 Apr 2013 22:35:21 -0400
Committer: Daniel Kristjansson <danielk at cuymedia.net> at Sat, 27 Apr 2013 14:38:07 -0400
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=94be92f68fcca43564e4f5bfb5d9e15d52e85503

Add basic threading support to new logging.
This is not yet very smart about how often it starts up the
logging event handler thread, nor does it do anything to
prevent excessive logging from consuming too much memory.

Those issues will be handled in later commits.



-----------------------------------------------------------------------

Summary of changes:
 mythtv/TODO-logging.txt                            |    6 +
 mythtv/libs/libmythbase/libmythbase.pro            |    3 +-
 mythtv/libs/libmythbase/logging/debugloghandler.h  |   20 +-
 mythtv/libs/libmythbase/logging/logdeque.cpp       |   64 ++-
 mythtv/libs/libmythbase/logging/logdeque.h         |   31 +-
 mythtv/libs/libmythbase/logging/logentry.h         |    4 +-
 .../libs/libmythbase/logging/logeventhandler.cpp   |   26 +
 mythtv/libs/libmythbase/logging/logeventhandler.h  |   48 ++
 mythtv/libs/libmythbase/mythlogging.cpp            |    1 +
 .../test/test_mythlogging/test_mythlogging.h       |  569 +----------------
 .../test/test_mythlogging/test_mythlogging.pro     |   14 +-
 .../test/test_mythlogging/test_mythloggingbase.h   |  682 ++++++++++++++++++++
 .../test/test_mythlogging_threaded/.gitignore      |    4 +
 .../test_mythlogging_threaded.cpp                  |   16 +
 .../test_mythlogging_threaded.h                    |   42 ++
 .../test_mythlogging_threaded.pro                  |   30 +
 16 files changed, 956 insertions(+), 604 deletions(-)
 create mode 100644 mythtv/libs/libmythbase/logging/logeventhandler.cpp
 create mode 100644 mythtv/libs/libmythbase/logging/logeventhandler.h
 create mode 100644 mythtv/libs/libmythbase/test/test_mythlogging/test_mythloggingbase.h
 create mode 100644 mythtv/libs/libmythbase/test/test_mythlogging_threaded/.gitignore
 create mode 100644 mythtv/libs/libmythbase/test/test_mythlogging_threaded/test_mythlogging_threaded.cpp
 create mode 100644 mythtv/libs/libmythbase/test/test_mythlogging_threaded/test_mythlogging_threaded.h
 create mode 100644 mythtv/libs/libmythbase/test/test_mythlogging_threaded/test_mythlogging_threaded.pro

-- 



More information about the mythtv-commits mailing list