OSDN Git Service

Fix a bug that made the nightly tester *really* slow. During changes for
authorReid Spencer <rspencer@reidspencer.com>
Mon, 27 Dec 2004 08:03:04 +0000 (08:03 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 27 Dec 2004 08:03:04 +0000 (08:03 +0000)
commitaeb47b8db9246fc0d5d6e437225fe84524da9202
treeb7788d238b911787483bc7f07d291e635cdc1dee
parent51163306ab0c51f1103139200cadb8e3fa6bfd18
Fix a bug that made the nightly tester *really* slow. During changes for
portability, the --track-space option was inadvertently ignored. This patch
fixes that so that sys::Process::GetMallocUsage() is only invoked if the
--track-spaces option is given. Apparently the mallinfo() call that
GetMallocUsage() uses is *very* slow, especially when processing very large
modules like projects/llvm-test/MultiSource/Applications/kimwitu++.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19163 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Timer.cpp