1# Copyright 2021 The Abseil Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15absl_cc_library(
16  NAME
17    sample_recorder
18  HDRS
19    "internal/sample_recorder.h"
20  COPTS
21    ${ABSL_DEFAULT_COPTS}
22  DEPS
23    absl::base
24    absl::synchronization
25)
26
27absl_cc_test(
28  NAME
29    sample_recorder_test
30  SRCS
31    "internal/sample_recorder_test.cc"
32  COPTS
33    ${ABSL_TEST_COPTS}
34  DEPS
35    absl::sample_recorder
36    absl::time
37    GTest::gmock_main
38)
39
40absl_cc_library(
41  NAME
42    exponential_biased
43  SRCS
44    "internal/exponential_biased.cc"
45  HDRS
46    "internal/exponential_biased.h"
47  COPTS
48    ${ABSL_DEFAULT_COPTS}
49  DEPS
50    absl::config
51    absl::core_headers
52)
53
54absl_cc_test(
55  NAME
56    exponential_biased_test
57  SRCS
58    "internal/exponential_biased_test.cc"
59  COPTS
60    ${ABSL_TEST_COPTS}
61  DEPS
62    absl::exponential_biased
63    absl::strings
64    GTest::gmock_main
65)
66
67absl_cc_library(
68  NAME
69    periodic_sampler
70  SRCS
71    "internal/periodic_sampler.cc"
72  HDRS
73    "internal/periodic_sampler.h"
74  COPTS
75    ${ABSL_DEFAULT_COPTS}
76  DEPS
77    absl::core_headers
78    absl::exponential_biased
79)
80
81absl_cc_test(
82  NAME
83    periodic_sampler_test
84  SRCS
85    "internal/periodic_sampler_test.cc"
86  COPTS
87    ${ABSL_TEST_COPTS}
88  DEPS
89    absl::core_headers
90    absl::periodic_sampler
91    GTest::gmock_main
92)
93
94