MCPcopy Create free account
hub / github.com/apache/impala / TestRandomInternalSingle

Method TestRandomInternalSingle

be/src/runtime/bufferpool/buffer-pool-test.cc:2099–2110  ·  view source on GitHub ↗

Single-threaded execution of the TestRandomInternalImpl.

Source from the content-addressed store, hash-verified

2097
2098// Single-threaded execution of the TestRandomInternalImpl.
2099void BufferPoolTest::TestRandomInternalSingle(
2100 int64_t min_buffer_len, bool multiple_pins) {
2101 const int MAX_NUM_BUFFERS = 200;
2102 const int64_t TOTAL_MEM = MAX_NUM_BUFFERS * min_buffer_len;
2103 MetricGroup tmp_metrics("test-metrics");
2104 BufferPool pool(&tmp_metrics, min_buffer_len, TOTAL_MEM, TOTAL_MEM);
2105 global_reservations_.InitRootTracker(NewProfile(), TOTAL_MEM);
2106 MemTracker global_tracker(TOTAL_MEM);
2107 TestRandomInternalImpl(
2108 &pool, NewFileGroup(), &global_tracker, &rng_, SINGLE_THREADED_TID, multiple_pins);
2109 global_reservations_.Close();
2110}
2111
2112// Multi-threaded execution of the TestRandomInternalImpl.
2113void BufferPoolTest::TestRandomInternalMulti(

Callers

nothing calls this directly

Calls 2

InitRootTrackerMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected