add 'show threads' and 'show profile' commands.
authorLuigi Rizzo <rizzo@icir.org>
Wed, 12 Apr 2006 20:40:46 +0000 (20:40 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Wed, 12 Apr 2006 20:40:46 +0000 (20:40 +0000)
commit2876a25505894c70ffc35fb35ab517a53912780f
tree0b296463204ccd97d57e585d6659dd75d15280fc
parent8f09c4345feb6035621c2336d4adbc55858f2e13
add 'show threads' and 'show profile' commands.
These are momstly debugging tools for developers,
a bit documented in the header files (utils.h),
although more documentation is definitely necessary.

The performance impact is close to zero(*) so there is no
need to compile it conditionally.
(*) not completely true - thread destruction still needs
to search a list _but_ this can be easily optimized if we
end up with hundreds of active threads (in which case, though,
the problem is clearly elsewhere).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@19544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
asterisk.c
include/asterisk.h
include/asterisk/compat.h
include/asterisk/lock.h
include/asterisk/utils.h
utils.c
utils/astman.c