aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/core/mon_alloc/ya.make
blob: 158114344d4c6a6d6361319e27fbafd7aed6e41e (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
LIBRARY()

OWNER(g:kikimr)

IF (PROFILE_MEMORY_ALLOCATIONS)
    CFLAGS(
        -DPROFILE_MEMORY_ALLOCATIONS
    )
ENDIF()

SRCS(
    monitor.cpp
    profiler.cpp
    stats.cpp
)

PEERDIR(
    library/cpp/actors/core
    library/cpp/actors/prof
    library/cpp/html/pcdata
    library/cpp/lfalloc/alloc_profiler 
    library/cpp/lfalloc/dbg_info 
    library/cpp/malloc/api
    library/cpp/monlib/service/pages
    library/cpp/ytalloc/api
    ydb/core/base
    ydb/core/control
)

IF (ALLOCATOR == "TCMALLOC_256K")
    SRCS(
        tcmalloc.cpp
    )
    PEERDIR(
        contrib/libs/tcmalloc
    )
ELSE()
    SRCS(
        tcmalloc_null.cpp
    )
ENDIF()

END()