blob: b3a7b0a1596749d8fa26fc65aa34f552a8efd9aa (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#include "ref_counted_tracker.h"
#include <library/cpp/yt/memory/ref_tracked.h>
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
TRefCountedTypeCookie TRefCountedTrackerFacade::GetCookie(
TRefCountedTypeKey typeKey,
size_t instanceSize,
const TSourceLocation& location)
{
return TRefCountedTracker::Get()->GetCookie(
typeKey,
instanceSize,
location);
}
void TRefCountedTrackerFacade::AllocateInstance(TRefCountedTypeCookie cookie)
{
TRefCountedTracker::AllocateInstance(cookie);
}
void TRefCountedTrackerFacade::FreeInstance(TRefCountedTypeCookie cookie)
{
TRefCountedTracker::FreeInstance(cookie);
}
void TRefCountedTrackerFacade::AllocateTagInstance(TRefCountedTypeCookie cookie)
{
TRefCountedTracker::AllocateTagInstance(cookie);
}
void TRefCountedTrackerFacade::FreeTagInstance(TRefCountedTypeCookie cookie)
{
TRefCountedTracker::FreeTagInstance(cookie);
}
void TRefCountedTrackerFacade::AllocateSpace(TRefCountedTypeCookie cookie, size_t size)
{
TRefCountedTracker::AllocateSpace(cookie, size);
}
void TRefCountedTrackerFacade::FreeSpace(TRefCountedTypeCookie cookie, size_t size)
{
TRefCountedTracker::FreeSpace(cookie, size);
}
void TRefCountedTrackerFacade::Dump()
{
fprintf(stderr, "%s", TRefCountedTracker::Get()->GetDebugInfo().data());
}
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT
|