[chore](build) Use include-what-you-use to optimize includes (PART II) (#18761)
Currently, there are some useless includes in the codebase. We can use a tool named include-what-you-use to optimize these includes. By using a strict include-what-you-use policy, we can get lots of benefits from it.
This commit is contained in:
@ -17,18 +17,21 @@
|
||||
|
||||
#include "runtime/memory/chunk_allocator.h"
|
||||
|
||||
#include <glog/logging.h>
|
||||
#include <sanitizer/asan_interface.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <list>
|
||||
#include <mutex>
|
||||
|
||||
#include "common/config.h"
|
||||
#include "common/status.h"
|
||||
#include "runtime/memory/chunk.h"
|
||||
#include "runtime/memory/mem_tracker.h"
|
||||
#include "runtime/memory/system_allocator.h"
|
||||
#include "runtime/thread_context.h"
|
||||
#include "util/bit_util.h"
|
||||
#include "util/cpu_info.h"
|
||||
#include "util/doris_metrics.h"
|
||||
#include "util/metrics.h"
|
||||
#include "util/runtime_profile.h"
|
||||
#include "util/spinlock.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user