blob: 8b065079cee8e31de4d75a66493b66372f24dfe1 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Metrics which depend on cobalt only.
zx_library("metrics-cobalt") {
sources = [
"cobalt_metrics.cc",
]
public_deps = [
"$zx/system/ulib/cobalt-client:headers",
"$zx/system/ulib/fbl:headers",
]
deps = [
"$zx/system/ulib/cobalt-client",
"$zx/system/ulib/fbl",
]
}
# Metrics which are logged by inspect vmo only.
zx_library("metrics-inspect") {
sources = [
"histograms.cc",
]
public_deps = [
"$zx/system/ulib/fbl:headers",
"$zx/system/ulib/fzl:headers",
"$zx/system/ulib/inspect:headers",
"$zx/system/ulib/zx:headers",
]
deps = [
"$zx/system/ulib/fbl",
"$zx/system/ulib/fzl",
"$zx/system/ulib/inspect",
"$zx/system/ulib/zx",
]
}
# Helper library that uses both cobalt and inspect to record metrics.
# TODO(ZX-3150): Remove once inspect broker service is complete.
zx_library("metrics-composite-latency-event") {
sources = [
"composite_latency_event.cc",
]
public_deps = [
"$zx/system/ulib/cobalt-client:headers",
"$zx/system/ulib/fs/metrics:metrics-cobalt.headers",
"$zx/system/ulib/fs/metrics:metrics-inspect.headers",
]
deps = [
"$zx/system/ulib/cobalt-client",
"$zx/system/ulib/fbl",
"$zx/system/ulib/fs/metrics:metrics-cobalt",
"$zx/system/ulib/fs/metrics:metrics-inspect",
]
}
# Group of all metric targets.
group("metrics") {
deps = [
":metrics-cobalt",
":metrics-composite-latency-event",
":metrics-inspect",
]
}