|
Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Classes | |
| class | ThreadDescriptor |
Public Member Functions | |
| ThreadMgr () | |
| Status | StartInstrumentation (MetricGroup *metrics, Webserver *webserver) |
| void | AddThread (const thread::id &thread, const string &name, const string &category, int64_t tid) |
| void | RemoveThread (const thread::id &boost_id, const string &category) |
Private Types | |
| typedef map< const thread::id, ThreadDescriptor > | ThreadCategory |
| typedef map< string, ThreadCategory > | ThreadCategoryMap |
Private Member Functions | |
| void | ThreadGroupUrlCallback (const Webserver::ArgumentMap &args, Document *output) |
| void | ThreadOverviewUrlCallback (const Webserver::ArgumentMap &args, Document *document) |
Private Attributes | |
| mutex | lock_ |
| ThreadCategoryMap | thread_categories_ |
| bool | metrics_enabled_ |
| IntGauge * | total_threads_metric_ |
| IntGauge * | current_num_threads_metric_ |
|
private |
|
private |
| void impala::ThreadMgr::AddThread | ( | const thread::id & | thread, |
| const string & | name, | ||
| const string & | category, | ||
| int64_t | tid | ||
| ) |
| void impala::ThreadMgr::RemoveThread | ( | const thread::id & | boost_id, |
| const string & | category | ||
| ) |
| Status impala::ThreadMgr::StartInstrumentation | ( | MetricGroup * | metrics, |
| Webserver * | webserver | ||
| ) |
Definition at line 155 of file thread.cc.
References impala::MetricGroup::AddGauge(), lock_, impala::OK, impala::Webserver::RegisterUrlCallback(), impala::THREADS_TEMPLATE, and impala::THREADS_WEB_PAGE.
|
private |
Definition at line 214 of file thread.cc.
References impala::Status::GetDetail(), impala::GetThreadStats(), impala::ThreadStats::iowait_ns, impala::ThreadStats::kernel_ns, lock_, impala::Status::ok(), and impala::ThreadStats::user_ns.
|
private |
|
private |
|
private |
|
private |