Jason Evans 4f37ef693e Refactor prof_dump() to reduce contention.
Refactor prof_dump() to use a two pass algorithm, and prof_leave() prior
to the second pass.  This avoids write(2) system calls while holding
critical prof resources.

Fix prof_dump() to close the dump file descriptor for all relevant error
paths.

Minimize the size of prof-related static buffers when prof is disabled.
This saves roughly 65 KiB of application memory for non-prof builds.

Refactor prof_ctx_init() out of prof_lookup_global().
2014-01-16 13:36:38 -08:00
..
2012-05-01 11:32:11 -07:00
2012-03-13 16:31:41 -07:00
2013-12-08 20:52:21 -08:00
2013-12-08 22:28:27 -08:00
2012-10-08 18:04:49 -07:00
2013-12-17 15:30:49 -08:00
2012-02-28 16:50:47 -08:00
2012-04-21 21:27:46 -07:00
2013-12-08 22:28:27 -08:00
2013-12-08 22:28:27 -08:00
2013-12-08 22:28:27 -08:00
2011-11-01 20:48:31 -07:00
2012-03-07 16:19:19 -08:00