summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2010-12-18 12:31:52 +0100
committerBrice Figureau <brice-puppet@daysofwonder.com>2010-12-18 15:18:57 +0100
commitaed4b5fd674107d6c1e3a2e2e5c2f8c42f7a5c35 (patch)
treec67f92adfbb34de8b5ebff626256aaa26a38f4f7 /lib/puppet/util/rdoc/code_objects.rb
parent2b8e834fcbc548a221b4cd02ee7200fa4f6c2c78 (diff)
downloadpuppet-aed4b5fd674107d6c1e3a2e2e5c2f8c42f7a5c35.tar.gz
puppet-aed4b5fd674107d6c1e3a2e2e5c2f8c42f7a5c35.tar.xz
puppet-aed4b5fd674107d6c1e3a2e2e5c2f8c42f7a5c35.zip
Process name instrumentation infrastructure
This is special feature that changes the process name of the running puppet entity to display its current activity. It is disabled by default, and can be enabled by sending the QUIT signal to the process in question (or calling enable through the code). This system can work only if some "probes" are integrated in the core puppet codebase. Since tools to visualize process names have a large refresh time (ie more than 1s) it only makes sense to track long activities (like compilation, transaction or file serving). Those probes are the subject of a subsequent patch. This system tracks every thread activity and form a strings which will be used as the process name. Due to the way it is implemented it is possible that it doesn't work on all platforms (I tested successfully on osx and linux). On some systems the space available is dependent on the original size of the full command. That's why if this string is longer than a 50 characters, the string is scrolled (like stock market tickers). Note: This is not intended to be a generic instrumentation system. Also, being block based means that it can reduce performance if the instrumentation probes are used in tight inner loops. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions