Support sampling duration, sampling TIDs (#142)
- Sampling duration config values - OMNITRACE_SAMPLING_DURATION - OMNITRACE_PROCESS_SAMPLING_DURATION - Disables sampling after this time (in seconds) has elapsed - Sampling thread-id config values - OMNITRACE_SAMPLING_TIDS - OMNITRACE_SAMPLING_CPUTIME_TIDS - OMNITRACE_SAMPLING_REALTIME_TIDS - Allows user to select certain threads for sampling - Miscellaneous - Tweaked the finalization verbosity messages - moved sampling-on-child-threads into runtime.hpp and runtime.cpp - fixed submodule dyninst header install
This commit is contained in:
committed by
GitHub
parent
c2d6589b93
commit
e67afd33eb
@@ -22,7 +22,6 @@
|
||||
|
||||
#include "library/components/pthread_mutex_gotcha.hpp"
|
||||
#include "library/components/category_region.hpp"
|
||||
#include "library/components/pthread_gotcha.hpp"
|
||||
#include "library/config.hpp"
|
||||
#include "library/critical_trace.hpp"
|
||||
#include "library/debug.hpp"
|
||||
@@ -293,7 +292,7 @@ pthread_mutex_gotcha::is_disabled()
|
||||
{
|
||||
return (get_state() != ::omnitrace::State::Active ||
|
||||
get_thread_state() != ThreadState::Enabled ||
|
||||
(get_use_sampling() && !pthread_gotcha::sampling_enabled_on_child_threads()));
|
||||
(get_use_sampling() && !sampling_enabled_on_child_threads()));
|
||||
}
|
||||
} // namespace component
|
||||
} // namespace omnitrace
|
||||
|
||||
Reference in New Issue
Block a user