[tsan] Implement WriteMemoryProfile for Darwin
authorKuba Brecka <kuba.brecka@gmail.com>
Mon, 31 Oct 2016 20:17:13 +0000 (20:17 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Mon, 31 Oct 2016 20:17:13 +0000 (20:17 +0000)
commit1f7deb8908c33632be1c74c9add7c6e6d1d4a852
tree6f4a00e800b3776335b734f953f32a6e191f6cf3
parent240cbabc6b3838aac99e65dc7a4f358044c29989
[tsan] Implement WriteMemoryProfile for Darwin

TSan’s memory usage profiling currently doesn’t work on Darwin. This patch implements measuring the amount of resident and dirty memory for each memory region. I also removed the GetShadowMemoryConsumption function, which seems to be unused.

Differential Revision: https://reviews.llvm.org/D25973

llvm-svn: 285630
compiler-rt/lib/tsan/rtl/tsan_platform_mac.cc
compiler-rt/lib/tsan/rtl/tsan_platform_windows.cc