aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/stockpile/stockpile.h
blob: 2b1b53e9b57fc2922609592732d82841b2897bfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <util/system/types.h>

#include <util/generic/size_literals.h>

#include <util/datetime/base.h>

namespace NYT {

////////////////////////////////////////////////////////////////////////////////

struct TStockpileOptions
{
    i64 BufferSize = 4_GB;
    int ThreadCount = 4;
    TDuration Period = TDuration::MilliSeconds(10);
};

void StockpileMemory(const TStockpileOptions& options);

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT