mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Remove useless code
This commit is contained in:
parent
bd277348ca
commit
90b9afab21
@ -147,7 +147,6 @@ private:
|
||||
String prompt() const;
|
||||
|
||||
void resetOutput();
|
||||
void outputQueryInfo(bool echo_query_);
|
||||
void parseAndCheckOptions(OptionsDescription & options_description, po::variables_map & options, Arguments & arguments);
|
||||
|
||||
void updateSuggest(const ASTPtr & ast);
|
||||
|
@ -102,17 +102,6 @@ void ProgressIndication::updateThreadEventData(HostToThreadTimesMap & new_thread
|
||||
cpu_usage_meter.add(getElapsedNanoseconds(), total_cpu_ns);
|
||||
}
|
||||
|
||||
size_t ProgressIndication::getUsedThreadsCount() const
|
||||
{
|
||||
std::lock_guard lock(profile_events_mutex);
|
||||
|
||||
return std::accumulate(thread_data.cbegin(), thread_data.cend(), 0,
|
||||
[] (size_t acc, auto const & threads)
|
||||
{
|
||||
return acc + threads.second.size();
|
||||
});
|
||||
}
|
||||
|
||||
double ProgressIndication::getCPUUsage()
|
||||
{
|
||||
std::lock_guard lock(profile_events_mutex);
|
||||
|
@ -62,8 +62,6 @@ public:
|
||||
void updateThreadEventData(HostToThreadTimesMap & new_thread_data);
|
||||
|
||||
private:
|
||||
size_t getUsedThreadsCount() const;
|
||||
|
||||
double getCPUUsage();
|
||||
|
||||
struct MemoryUsage
|
||||
|
Loading…
Reference in New Issue
Block a user