mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Merge pull request #42004 from ClickHouse/remove-useless-code-3
Remove useless code
This commit is contained in:
commit
c5586f7644
@ -147,7 +147,6 @@ private:
|
|||||||
String prompt() const;
|
String prompt() const;
|
||||||
|
|
||||||
void resetOutput();
|
void resetOutput();
|
||||||
void outputQueryInfo(bool echo_query_);
|
|
||||||
void parseAndCheckOptions(OptionsDescription & options_description, po::variables_map & options, Arguments & arguments);
|
void parseAndCheckOptions(OptionsDescription & options_description, po::variables_map & options, Arguments & arguments);
|
||||||
|
|
||||||
void updateSuggest(const ASTPtr & ast);
|
void updateSuggest(const ASTPtr & ast);
|
||||||
|
@ -102,17 +102,6 @@ void ProgressIndication::updateThreadEventData(HostToThreadTimesMap & new_thread
|
|||||||
cpu_usage_meter.add(getElapsedNanoseconds(), total_cpu_ns);
|
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()
|
double ProgressIndication::getCPUUsage()
|
||||||
{
|
{
|
||||||
std::lock_guard lock(profile_events_mutex);
|
std::lock_guard lock(profile_events_mutex);
|
||||||
|
@ -62,8 +62,6 @@ public:
|
|||||||
void updateThreadEventData(HostToThreadTimesMap & new_thread_data);
|
void updateThreadEventData(HostToThreadTimesMap & new_thread_data);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
size_t getUsedThreadsCount() const;
|
|
||||||
|
|
||||||
double getCPUUsage();
|
double getCPUUsage();
|
||||||
|
|
||||||
struct MemoryUsage
|
struct MemoryUsage
|
||||||
|
Loading…
Reference in New Issue
Block a user