blob: 3d7551a8f667cb55ce47ba73d213608e07162e91 (
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
|
#include "ref_tracked.h"
#include "ref_counted_tracker.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
|