1. 10 Oct, 2017 1 commit
  2. 06 Jul, 2017 5 commits
  3. 05 Jul, 2017 1 commit
  4. 29 Jun, 2017 1 commit
  5. 28 Jun, 2017 1 commit
  6. 27 Jun, 2017 5 commits
  7. 26 Jun, 2017 2 commits
  8. 22 Jun, 2017 2 commits
  9. 12 May, 2017 2 commits
  10. 10 May, 2017 2 commits
  11. 09 May, 2017 8 commits
  12. 21 Apr, 2017 1 commit
  13. 20 Apr, 2017 1 commit
  14. 07 Mar, 2017 2 commits
  15. 09 Feb, 2017 1 commit
  16. 08 Feb, 2017 1 commit
    • Yoshisato Yanagisawa's avatar
      DCHECK_ALWAYS_ON to make D* enabled under NDEBUG · 027332ff
      Yoshisato Yanagisawa authored
      The macro NDEBUG could be automatically defined for release build on
      some build environments (e.g. MSVC).  If we use NDEBUG as a key to
      distinguish using DCHECK as CHECK (I call this DCHECK is enabled) or
      not, we cannot make DCHECK enabled for release build on such
      environments.
      
      Considering people use a program with glog for presubmit testing or
      dogfooding, they should need to do release build with DCHECK enabled.
      027332ff
  17. 17 Jan, 2017 1 commit
  18. 10 Jan, 2017 2 commits
  19. 09 Dec, 2016 1 commit
    • Pádraig Brady's avatar
      rate limit calls to posix_fadvise() · dacd2967
      Pádraig Brady authored
      There can be a large kernel overhead involved in POSIX_FADV_DONTNEED.
      There is no point in calling this per item logged, so rate limit
      to at most once per 2MiB written.
      
      With a simple test program that logs 100K items at WARNING level:
      
      Before:
      
        $ time strace -c -e fadvise64 log.test \
          -log_dir=/dev/shm -logtofiles=true -logtostderr=false
        % time     seconds  usecs/call     calls    errors syscall
        ------ ----------- ----------- --------- --------- ----------------
        100.00   12.522509         125     99957           fadvise64
        ------ ----------- ----------- --------- --------- ----------------
        real    0m52.671s
        user    0m2.194s
        sys     0m44.022s
      
      After:
      
        $ time strace -c -e fadvise64 log.test \
          -log_dir=/dev/shm -logtofiles=true -logtostderr=false
      
        % time     seconds  usecs/call     calls    errors syscall
        ------ ----------- ----------- --------- --------- ----------------
        100.00    0.000759         152         5           fadvise64
        ------ ----------- ----------- --------- --------- ----------------
        real    0m4.206s
        user    0m1.436s
        sys     0m3.153s
      
      Fixes issue #84
      dacd2967