-
Notifications
You must be signed in to change notification settings - Fork 5.7k
/
BUILD.bazel
38 lines (36 loc) · 876 Bytes
/
BUILD.bazel
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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "gctuner",
srcs = [
"finalizer.go",
"mem.go",
"memory_limit_tuner.go",
"tuner.go",
],
importpath = "github.com/pingcap/tidb/util/gctuner",
visibility = ["//visibility:public"],
deps = [
"//util",
"//util/memory",
"@com_github_pingcap_failpoint//:failpoint",
"@org_uber_go_atomic//:atomic",
],
)
go_test(
name = "gctuner_test",
timeout = "short",
srcs = [
"finalizer_test.go",
"mem_test.go",
"memory_limit_tuner_test.go",
"tuner_test.go",
],
embed = [":gctuner"],
flaky = True,
race = "on",
deps = [
"//util/memory",
"@com_github_pingcap_failpoint//:failpoint",
"@com_github_stretchr_testify//require",
],
)