[enhancement] Refactor to improve the usability of MemTracker (step2) (#10823)
This commit is contained in:
@ -22,7 +22,6 @@
|
||||
#include <string>
|
||||
|
||||
#include "runtime/mem_pool.h"
|
||||
#include "runtime/mem_tracker.h"
|
||||
|
||||
namespace doris {
|
||||
|
||||
@ -36,8 +35,7 @@ void validate_string(const std::string& std_str, const StringBuffer& str) {
|
||||
}
|
||||
|
||||
TEST(StringBufferTest, Basic) {
|
||||
MemTracker tracker;
|
||||
MemPool pool(&tracker);
|
||||
MemPool pool;
|
||||
StringBuffer str(&pool);
|
||||
std::string std_str;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user