[Feature](Memory) Hook TCMalloc new/delete automatically counts to MemTracker (#8476)
Early Design Documentation: https://shimo.im/docs/DT6JXDRkdTvdyV3G Implement a new way of memory statistics based on TCMalloc New/Delete Hook, MemTracker and TLS, and it is expected that all memory new/delete/malloc/free of the BE process can be counted.
This commit is contained in:
@ -38,8 +38,7 @@ TEST(ComparisonTest, ComparisonFunctionTest) {
|
||||
|
||||
auto tuple_desc = const_cast<TupleDescriptor*>(schema_scanner.tuple_desc());
|
||||
RowDescriptor row_desc(tuple_desc, false);
|
||||
auto tracker_ptr = MemTracker::create_tracker(-1, "BlockTest", nullptr);
|
||||
RowBatch row_batch(row_desc, 1024, tracker_ptr.get());
|
||||
RowBatch row_batch(row_desc, 1024);
|
||||
|
||||
int16_t k1 = -100;
|
||||
int32_t k2 = 100;
|
||||
|
||||
Reference in New Issue
Block a user