summaryrefslogtreecommitdiffstats
path: root/test/unit/prof_accum.c
Commit message (Collapse)AuthorAgeFilesLines
* Break prof_accum into multiple compilation units.Jason Evans2014-02-251-37/+1
| | | | | | Break prof_accum into multiple compilation units, in order to thwart compiler optimizations such as inlining and tail call optimization that would alter backtraces.
* Prevent inlining of backtraced test functions.Jason Evans2014-01-291-2/+2
| | | | | Inlining of alloc_0() and alloc_1() would prevent generation of unique backtraces, upon which the test code relies.
* Subvert tail call optimization in backtrace test.Jason Evans2014-01-211-11/+17
| | | | | | | Re-structure alloc_[01](), which are mutually tail-recursive functions, to do (unnecessary) work post-recursion so that the compiler cannot perform tail call optimization, thus preserving intentionally unique call paths in captured backtraces.
* Add heap profiling tests.Jason Evans2014-01-171-0/+116
Fix a regression in prof_dump_ctx() due to an uninitized variable. This was caused by revision 4f37ef693e3d5903ce07dc0b61c0da320b35e3d9, so no releases are affected.