MCPcopy Create free account
hub / github.com/catboost/catboost / Finish

Method Finish

library/cpp/yt/memory/chunked_output_stream.cpp:27–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27std::vector<TSharedRef> TChunkedOutputStream::Finish()
28{
29 FinishedChunks_.push_back(TrackMemory(
30 MemoryUsageTracker_,
31 TSharedRef::FromBlob(std::move(CurrentChunk_))));
32
33 CurrentChunkMemoryUsageGuard_.Release();
34
35 YT_ASSERT(CurrentChunk_.IsEmpty());
36 FinishedSize_ = 0;
37
38 for (const auto& chunk : FinishedChunks_) {
39 NSan::CheckMemIsInitialized(chunk.Begin(), chunk.Size());
40 }
41
42 return std::move(FinishedChunks_);
43}
44
45size_t TChunkedOutputStream::GetSize() const
46{

Callers

nothing calls this directly

Calls 8

TrackMemoryFunction · 0.85
CheckMemIsInitializedFunction · 0.85
moveFunction · 0.50
push_backMethod · 0.45
ReleaseMethod · 0.45
IsEmptyMethod · 0.45
BeginMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected