Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::AllocatorFlushThresholdSetting Struct Reference

Public Types

using RETURN_TYPE = string

Static Public Member Functions

static void SetGlobal (DatabaseInstance *db, DBConfig &config, const Value &parameter)
static void ResetGlobal (DatabaseInstance *db, DBConfig &config)
static Value GetSetting (const ClientContext &context)

Static Public Attributes

static constexpr const char * Name = "allocator_flush_threshold"
static constexpr const char * Description
static constexpr const char * InputType = "VARCHAR"

Member Function Documentation

◆ SetGlobal()

void duckdb::AllocatorFlushThresholdSetting::SetGlobal ( DatabaseInstance * db,
DBConfig & config,
const Value & parameter )
static
301447 {
301448 config.options.allocator_flush_threshold = DBConfig::ParseMemoryLimit(input.ToString());
301449 if (db) {
301450 TaskScheduler::GetScheduler(*db).SetAllocatorFlushTreshold(config.options.allocator_flush_threshold);
301451 }
301452}
idx_t allocator_flush_threshold
The peak allocation threshold at which to flush the allocator after completing a task (1 << 27,...
Definition duckdb.hpp:40042
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090

◆ ResetGlobal()

void duckdb::AllocatorFlushThresholdSetting::ResetGlobal ( DatabaseInstance * db,
DBConfig & config )
static
301454 {
301455 config.options.allocator_flush_threshold = DBConfigOptions().allocator_flush_threshold;
301456 if (db) {
301457 TaskScheduler::GetScheduler(*db).SetAllocatorFlushTreshold(config.options.allocator_flush_threshold);
301458 }
301459}

◆ GetSetting()

Value duckdb::AllocatorFlushThresholdSetting::GetSetting ( const ClientContext & context)
static
301461 {
301462 auto &config = DBConfig::GetConfig(context);
301463 return Value(StringUtil::BytesToHumanReadableString(config.options.allocator_flush_threshold));
301464}
static DUCKDB_API string BytesToHumanReadableString(idx_t bytes, idx_t multiplier=1024)
Return a string that formats the give number of bytes.
Definition duckdb.cpp:109517

Member Data Documentation

◆ Description

const char* duckdb::AllocatorFlushThresholdSetting::Description
staticconstexpr
Initial value:
=
"Peak allocation threshold at which to flush the allocator after completing a task."

The documentation for this struct was generated from the following file: