tsan: fix and make faster GetRSS
authorDmitry Vyukov <dvyukov@google.com>
Fri, 25 Jul 2014 13:47:57 +0000 (13:47 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 25 Jul 2014 13:47:57 +0000 (13:47 +0000)
commitfe17080c88246781cc2c398c6a1e9e8d4419d558
tree35758a5cdf8fa1b3f1455d931b51994dc1dfe049
parentd712403b98c01f12fdec3bb3af6fbf2c99a0735b
tsan: fix and make faster GetRSS
It is currently broken because it reads a wrong value from profile (heap instead of total).
Also make it faster by reading /proc/self/statm. Reading of /proc/self/smaps
can consume more than 50% of time on beefy apps if done every 100ms.

llvm-svn: 213942
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc