History log of /external/llvm/lib/Support/Timer.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd81d94322a39503e4a3e87b6ee03d4fcb3465fb 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/lib/Support/Timer.cpp
dce4a407a24b04eebc6a376f8e62b41aaa7b071f 29-May-2014 Stephen Hines <srhines@google.com> Update LLVM for 3.5 rebase (r209712).

Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
/external/llvm/lib/Support/Timer.cpp
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/lib/Support/Timer.cpp
c1b49b56d4132efa2e06deb8f23508d0de4c8800 16-Jul-2013 Rafael Espindola <rafael.espindola@gmail.com> Add a wrapper for open.

This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186447 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
d04a8d4b33ff316ca4cf961e06c9e312eff8e64f 03-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Use the new script to sort the includes of every file under lib.

Sooooo many of these had incorrect or strange main module includes.
I have manually inspected all of these, and fixed the main module
include to be the nearest plausible thing I could find. If you own or
care about any of these source files, I encourage you to take some time
and check that these edits were sensible. I can't have broken anything
(I strictly added headers, and reordered them, never removed), but they
may not be the headers you'd really like to identify as containing the
API being implemented.

Many forward declarations and missing includes were added to a header
files to allow them to parse cleanly when included first. The main
module rule does in fact have its merits. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
41a964931a0e0943ceef28b0c691843bf8ca87b7 05-Nov-2011 Benjamin Kramer <benny.kra@googlemail.com> Add more PRI.64 macros for MSVC and use them throughout the codebase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143799 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
962bad70f4277841cf6278306caa93ebce304b48 16-Oct-2011 Benjamin Kramer <benny.kra@googlemail.com> Let printf do the formatting instead aligning strings ourselves.

While at it, merge some format strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142140 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
1f6efa3996dd1929fbc129203ce5009b620e6969 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com> Merge System into Support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
fff0f11989a9ef23ab3e308783cc90c7620000eb 07-Aug-2010 Benjamin Kramer <benny.kra@googlemail.com> Roll back my last two commits, valgrind complains.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110518 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
933b16e665fba5b29fd83e762390f23c2eaf77db 07-Aug-2010 Benjamin Kramer <benny.kra@googlemail.com> Kill rarely used std::sort.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110516 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
03c3dc7b6828d48a9f3be50896b3390a696caa64 18-Jun-2010 Dan Gohman <gohman@apple.com> Give NamedRegionTimer an Enabled flag, allowing all its clients to
switch from this:

if (TimePassesIsEnabled) {
NamedRegionTimer T(Name, GroupName);
do_something();
} else {
do_something(); // duplicate the code, this time without a timer!
}

to this:

{
NamedRegionTimer T(Name, GroupName, TimePassesIsEnabled);
do_something();
}


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106285 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
86026cd24eb8bdffdd6cf94669f98baeb87d8ef3 19-May-2010 Dan Gohman <gohman@apple.com> Add a comment explaining why this code uses Append mode.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104095 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
b35798347ea87b8b6d36155b211016a7769f01ab 15-Apr-2010 Dan Gohman <gohman@apple.com> Fix a bunch of namespace polution.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101376 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
cebf5bc2ee0c5fdfa2b604e002b60add3cc895f0 30-Mar-2010 Chris Lattner <sabre@nondot.org> stringref'ize Timer apis


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99877 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
83fa78efb19d288d172a5db87bafcb9a34a4f035 30-Mar-2010 Chris Lattner <sabre@nondot.org> finally, maintain a global list of timer groups, allowing us to
implement TimerGroup::printAll, which prints and resets all active
timers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99876 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
ecdbff8c74e9c85af08fe9ec9cee4625d36c3c36 30-Mar-2010 Chris Lattner <sabre@nondot.org> add a new TimerGroup::print method, and refactor away the bogus
TimerGroup copy ctor and assignment operator.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99875 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
49a2bb23d1391c8be45985518d4c5e99ff11b864 30-Mar-2010 Chris Lattner <sabre@nondot.org> rename GetLibSupportInfoOutputFile -> CreateInfoOutputFile and
have it always return a new stream to simplify clients.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99874 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
9f9f6d19dd67926446fb89a7b2dc0bda6353645b 30-Mar-2010 Chris Lattner <sabre@nondot.org> if a timergroup is destroyed before its timers, print times.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99873 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
b9312690a2a79de490ab9c439b9b5d7c9319bff8 30-Mar-2010 Chris Lattner <sabre@nondot.org> change TimerGroup to keep a linked list of active timers
instead of just a count of them, and refactor the guts of
report printing out of removeTimer into its own method.
Refactor addTimerToPrint away.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
a782e75d487006cafffdc256b3c623307fee4dcf 30-Mar-2010 Chris Lattner <sabre@nondot.org> reapply my timer rewrite with a change for PassManager to store
timers by pointer instead of by-value.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99871 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
0d2725ad696afb60c86076469031783669809739 30-Mar-2010 Chris Lattner <sabre@nondot.org> revert r99862 which is causing FNT failures.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99870 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
9fa0eff30a0d4fcbc84ac3ada4c47620b5449043 30-Mar-2010 Chris Lattner <sabre@nondot.org> fairly major rewrite of various timing related stuff.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99862 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
f8df3e011c9b32f16bd6f3d4bb8d3d2e26280986 29-Mar-2010 Chris Lattner <sabre@nondot.org> move a function into a more logical place in the file


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
fc86c3cfd6e81113722f17bebc54bc0b63389b58 29-Mar-2010 Chris Lattner <sabre@nondot.org> remove support for per-time peak memory tracking, this
isn't used by anyone and is better exposed as a non-per-timer
thing. Also, stop including System/Mutex.h in Timer.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99841 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
0ea86bc411748f10b913f42ef3a71b46ace7ceb2 29-Mar-2010 Chris Lattner <sabre@nondot.org> various timer fixes: move operator= out of line,
eliminate the per-timer lock (timers should be
externally locked if needed), the info-output-stream
can never be dbgs(), so drop the check. Make some
stuff private.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99839 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
0613edc5cfe6a6c06db93436a024a265fde2a5ab 29-Mar-2010 Chris Lattner <sabre@nondot.org> s/.../.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
9bb110f78efb6096e70336da83b2015f83fc6233 29-Mar-2010 Chris Lattner <sabre@nondot.org> move code around and improve indentation, no functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
da80ff6ae6ed7b10d8525942f28b4c27feaf8c2f 05-Jan-2010 David Greene <greened@obbligato.org> Change errs() to dbgs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
252e574924a64852d04d8666cbf5b7ed5896c6b3 17-Nov-2009 Owen Anderson <resistor@mac.com> Fix a race condition in the Timer class.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
c11e84d3e7a432449d453b51b567f2fc5db4e8c0 07-Nov-2009 Mikhail Glushenkov <foldr@codedgers.com> Trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86347 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
d9ea85ab01fb0f2929ed50223d3758dceea8bcbd 23-Aug-2009 Chris Lattner <sabre@nondot.org> remove some uses of llvm/Support/Streams.h



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
a9d1f2c559ef4b2549e29288fe6944e68913ba0f 07-Jul-2009 Owen Anderson <resistor@mac.com> Have scoped mutexes take referenes instead of pointers.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
46d9a6494496d215e850f337b5a723c484212f80 23-Jun-2009 Owen Anderson <resistor@mac.com> Make timers threadsafe again. This isn't quite as nice as I'd hoped (it uses locking rather than atomic arithmetic),
but should work on all the platforms we care about.

I might revisit this if a totally awesome way to do it occurs to me.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74002 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
6f2c64d70aad5328a843a6f6a6547ada69ead33b 23-Jun-2009 Owen Anderson <resistor@mac.com> Revert my last series of commits related to Timer and 64-bit atomics. Not all the targets
we care about are capable of supporting it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73993 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
b2889959c4d446bfd2406d5cf3a0512958328a80 23-Jun-2009 Lang Hames <lhames@gmail.com> Switched size_t to int64_t to prevent type mismatch in call to max.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73988 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
14112e51697e56788fcb32f4255833499c2738b5 23-Jun-2009 Owen Anderson <resistor@mac.com> Actually, these need to be signed integers, not unsigned.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73978 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
cd92c1000eeceb195daaab47ca4a2161ab2da410 23-Jun-2009 Owen Anderson <resistor@mac.com> Use 64-bit integer counters for tracking time, rather than doubles. This will be more atomic op friendly.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73974 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
3b8d135879bd045d63174064c6879eaa6581ec00 23-Jun-2009 Owen Anderson <resistor@mac.com> Make the lazy initialization of DefaultTimerGroup threadsafe.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73963 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
200aa6d89b75d2a4f630b85a4a785ae7d18d16bb 23-Jun-2009 Owen Anderson <resistor@mac.com> Revert r73923, which broke clang.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73957 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
af2e2b54b6b69613a3f0705aa892b9ffb7d8ae64 23-Jun-2009 Owen Anderson <resistor@mac.com> Add guards around timer groups, which can be shared.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73923 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
5e84368b26415b3bb7f3f8d9cff3e05938dd82d0 14-Jul-2008 Dan Gohman <gohman@apple.com> Reapply 53476 and 53480, with a fix so that it properly updates
the BB member to the current basic block after emitting
instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53567 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
b5eec33dcde63bee6048d54bee2a376737028e5c 12-Jul-2008 Evan Cheng <evan.cheng@apple.com> Back out 53476 and 53480 for now. Somehow they cause llc to miscompile 179.art.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53502 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
dbe2a5a26925cd3ed8a4c2cf02c8273fcf9919d7 11-Jul-2008 Dan Gohman <gohman@apple.com> Add support for putting NamedRegionTimers in TimerGroups, and
use a timer group for the timers in SelectionDAGISel. Also,
Split scheduling out from emitting, to give each their own
timer.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53476 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
c418bf3dd593b5b2fe2f978930f6d0d6b17e344e 11-Jul-2008 Dan Gohman <gohman@apple.com> Use find instead of lower_bound.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53474 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
153d28a414d087cbe20d17329fed358f7fa1258b 25-Jun-2008 Dan Gohman <gohman@apple.com> Append to the ActiveTimers std::vector before looking at the timer instead
of after, so that any reallocation it does doesn't get counted for the pass
being timed. This probably doesn't account for a timing discrepancy I was
looking into, but I'm fixing it anyway.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52693 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
3c02aca2380bc95a3ce5799929354612c67cc105 24-Apr-2008 Dan Gohman <gohman@apple.com> Make these variables static.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
4ee451de366474b9c228b4e5fa573795a715216d 29-Dec-2007 Chris Lattner <sabre@nondot.org> Remove attribution from file headers, per discussion on llvmdev.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
bcd2498f4f1682dbdc41452add5b9bc72cbd6b3f 07-Dec-2006 Bill Wendling <isanbard@gmail.com> Removed more <iostream> includes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
ac0b6ae358944ae8b2b5a11dc08f52c3ed89f2da 06-Dec-2006 Chris Lattner <sabre@nondot.org> Detemplatize the Statistic class. The only type it is instantiated with
is 'unsigned'.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32279 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
90aa839c88776e3dd0b3a798a98ea30d85b6b53c 04-Oct-2006 Chris Lattner <sabre@nondot.org> Fix more static dtor issues


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30725 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
f976c856fcc5055f3fc7d9f070d72c2d027c1d9d 22-Apr-2005 Misha Brukman <brukman+llvm@gmail.com> Remove trailing whitespace


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21422 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
fed1b27d323001682e7cb1bd66bb5d603cabb9f8 22-Mar-2005 Chris Lattner <sabre@nondot.org> Timers SHOULD NOT record the time taken to count the bytes allocated in the heap!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20765 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
3ac960510970df4831ff511e69c9de5c6030fe3b 09-Feb-2005 Chris Lattner <sabre@nondot.org> Don't print a 'Total Execution Time' line for the 'Miscellaneous Ungrouped
Timers' section. Since these are random timers in the program it doesn't
make sense to sum them up.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20090 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
6cfbd626806875214291d44ea4f9064cc1479623 29-Jan-2005 Chris Lattner <sabre@nondot.org> Memory used is a delta between memuse at the start of the time and the
memuse at the end, thus it is signed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19904 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
e269a1ac1cd795135e91e42527a9814f4807c75a 08-Jan-2005 Jeff Cohen <jeffc@jolt-lang.org> Use size_t instead of long to represent memory usage. long is 32 bits
on 64-bit Windows.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19393 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
7cf9ad36982b18a548fd45db0c001296533c44da 08-Jan-2005 Chris Lattner <sabre@nondot.org> Silence a VS warning.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19377 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
aeb47b8db9246fc0d5d6e437225fe84524da9202 27-Dec-2004 Reid Spencer <rspencer@reidspencer.com> 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
/external/llvm/lib/Support/Timer.cpp
7d05563324e538a377ba12ca62b2b5b0fbbba547 20-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Fix a bug where system time always equals user time


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19075 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
0255abb41ab1b38ccbfa92e2235b3ff7bf6430d6 20-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Put some header files back that Win32 needs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
df52c9aaf2ec6fbd0562e849cdba36e620537989 20-Dec-2004 Reid Spencer <rspencer@reidspencer.com> For PR351:
* Move system dependent implementation out of this file.
* Make implementation use sys::Process::GetMallocUsage where necessary.
* Make implementation use sys::Process::GetTimeUsage where necessary.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19053 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
f6e5a25f3a57a225c8545e453045f3ae220e3286 14-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Revert the last patch as it causes a static destruction ordering problem.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18925 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
4af3da6e6b5607e4ec19c9b3f995feeb6fb70ae5 13-Dec-2004 Reid Spencer <rspencer@reidspencer.com> Get rid of some leaks found by VC leak detector.
Patch contributed by Morten Ofsted.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18889 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
6475b8d178f832c70da4af79fcb1e8d1690df059 19-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Undo last change as its unnecessary.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
170eb10083d3f54efee593f29a99f3144a444357 19-Nov-2004 Reid Spencer <rspencer@reidspencer.com> Make a cast explicit.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17977 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
551ccae044b0ff658fe629dd67edd5ffe75d10e8 02-Sep-2004 Reid Spencer <rspencer@reidspencer.com> Changes For Bug 352
Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16137 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
b4db5f3e4b24bfc515bc615b2b6256083c7ef508 07-Jun-2004 Chris Lattner <sabre@nondot.org> Implement getTimeRecord natively in Win32, properly conditionalize the
getrusage implementation on HAVE_GETRUSAGE


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
b6d465f8131f5fb0b8e565685fb3395ed9aecbdb 14-Dec-2003 Chris Lattner <sabre@nondot.org> Finegrainify namespacification
Make the Timer code give correct user/system/user+system times when -track-memory is enabled


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
d0fde30ce850b78371fd1386338350591f9ff494 11-Nov-2003 Brian Gaeke <gaeke@uiuc.edu> Put all LLVM code into the llvm namespace, as per bug 109.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
b576c94c15af9a440f69d9d03c2afead7971118c 20-Oct-2003 John Criswell <criswell@uiuc.edu> Added LLVM project notice to the top of every C++ source file.
Header files will be on the way.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
e24b616faa7fc4242f807669d502a544e9b042fd 10-Oct-2003 Brian Gaeke <gaeke@uiuc.edu> Don't include Config/stdio.h or <stdio.h>.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9031 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
d5a310e4b3251410d4afd58ccea5ec7f0cb13d5f 06-Oct-2003 Chris Lattner <sabre@nondot.org> Implement the NamedRegionTimer class


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8889 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
96a54db5e763c19f556a1b54ad2956cc91b81cb8 02-Aug-2003 Chris Lattner <sabre@nondot.org> Describe the value name


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7493 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
71336a9c14d2da7fd9ab094eed8c6f3695b864ee 31-Jul-2003 Chris Lattner <sabre@nondot.org> Fix the JIT in the Nightly tester. This was not a fun bug to track down.
See the comments in the patch for details.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7457 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
396aecd032413d461a9b8a0b2499ee6a838859f4 31-Jul-2003 Chris Lattner <sabre@nondot.org> Trivial cleanups: no need to include header twice. Global variable is local to file


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7456 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
7a73b80b9052136c8cd2234eb3433a07df7cf38e 30-Jun-2003 John Criswell <criswell@uiuc.edu> Merged in autoconf branch. This provides configuration via the autoconf
system.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7014 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
ed4775a3c149900fb8e04bc9baf9d683cbecc28b 19-Jun-2003 Chris Lattner <sabre@nondot.org> Remove usage of sys/unistd.h


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6788 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
8c63883f1ff72191becfda8506e3919a50af20d8 17-Jun-2003 Brian Gaeke <gaeke@uiuc.edu> Put ifdefs around use of malloc.h/mallinfo, which isn't available on FreeBSD.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6750 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
903c2d11e2dfadaaa7c04c2e46bac62d82e7ed15 07-Jun-2003 Chris Lattner <sabre@nondot.org> Fix compilation problem with some versions of G++


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6660 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
b8c8829a4a98060b6cd32112bdeee75daac4d35e 06-Jun-2003 Chris Lattner <sabre@nondot.org> Fix problem with perror


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6659 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
f205fec78ae79707464d568bad297bc69fd1db78 09-May-2003 Chris Lattner <sabre@nondot.org> Add a new info-output-file option (hidden from --help) which is to be used by
the testing scripts to avoid breaking diffs while still gathering stats.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6067 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
8166b7cdb891e0d3c5789260248211a8b6e99787 13-Feb-2003 Chris Lattner <sabre@nondot.org> Make more compatible with GCC 2.96


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
e040f9706697b786a1288971b6d5ab96107bb799 13-Feb-2003 Chris Lattner <sabre@nondot.org> Remove gunk that was supposed to make space evaluation more precise, but never worked.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
98d829c22fe836de0e1e6491aeecbda7217ae05e 12-Feb-2003 Chris Lattner <sabre@nondot.org> Don't output times in "scientific" notation


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5544 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
bbe5ac1458f3719fd51785f086e9166ccbb0c464 05-Feb-2003 Chris Lattner <sabre@nondot.org> Squelch warning


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5494 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
3f39849003689a4d33aecdc744d4d27fd93a8f68 31-Jan-2003 Chris Lattner <sabre@nondot.org> * Add new -track-memory option to tools which enables the mem usage column in the reports.

This is now optional (and defaults to off) because mallinfo can be VERY slow as it
seems to touch every page of allocated memory.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
8f0d824dd7d3ad72ce2212556f306a69310dff3e 18-Nov-2002 Chris Lattner <sabre@nondot.org> Add peak memory usage measurement capability
Add (currently disabled) faciility to try to filter out pool allocation overhead from memory usage stats


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4753 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
69e79e0be49fe729c632014ada2ee790088eca94 04-Nov-2002 Chris Lattner <sabre@nondot.org> Simplify code


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4547 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
a95078dc2451ee973b4aba30513d65b5bc1ed068 04-Nov-2002 Chris Lattner <sabre@nondot.org> Sun can now use mallinfo()


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4546 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
18eba91a05ccff184820f8afddfddada15e35e65 04-Nov-2002 Chris Lattner <sabre@nondot.org> Allow memory sizes to be negative, remove obsolete TmpRSS field


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4538 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
6cd11f6535600da5f286056748d4817e0f44b778 04-Nov-2002 Chris Lattner <sabre@nondot.org> mallinfo is not available on sun apparently :(


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
a5cf9364f19b5db75820ba2f46b9f6ac463e4d71 04-Nov-2002 Chris Lattner <sabre@nondot.org> Minor fix to space accounting


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4520 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
9d4ef12b9c816702c977f265ccf5beb4ed059dde 04-Nov-2002 Chris Lattner <sabre@nondot.org> Implement MaxRSS in terms of mallinfo instead of the system RSS. This gives
us much more accurate numbers and actually WORKS.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4518 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
9550dc2df2aad33e92febc0e3a15aca372639a10 27-Oct-2002 Chris Lattner <sabre@nondot.org> Add #include


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
34008373748f334b380972c67938c41f2e98582a 05-Oct-2002 Anand Shukla <ashukla@cs.uiuc.edu> Added #include<unistd.h> to compile with solaris gcc3.2


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4042 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Timer.cpp
6c38a79d770f3f0eaa11694ad84ca729b75272c4 01-Oct-2002 Chris Lattner <sabre@nondot.org> Checkin generic interval timer support


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