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

Function TrackMemory

library/cpp/yt/memory/simple_memory_usage_tracker.cpp:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104TSharedRef TrackMemory(
105 const ISimpleMemoryUsageTrackerPtr& tracker,
106 TSharedRef reference,
107 bool keepExistingTracking)
108{
109 if (!tracker || !reference) {
110 return reference;
111 }
112 return tracker->Track(std::move(reference), keepExistingTracking);
113}
114
115////////////////////////////////////////////////////////////////////////////////
116

Callers 3

FinishMethod · 0.85
ReserveNewChunkMethod · 0.85
PreallocateMethod · 0.85

Calls 2

moveFunction · 0.50
TrackMethod · 0.45

Tested by

no test coverage detected