Files
Etienne PerotandgVisor bot 81a41f5060 Add metricsviz_cli tool to manually create charts from profiling metrics.
This is part of a series of changes to add metric charts in performance
benchmarks.

Comes with a test, which also serves as an end-to-end-ish test of profiling
metric functionality from collection to charting.

Including `metricsviz` in a `go_binary` requires making it non-`testonly`,
which in turn means removing the `dockerutil` dependency, so this uses an
interface to break the dependency on `dockerutil.Container`.

PiperOrigin-RevId: 633394898
2024-05-13 18:30:02 -07:00

27 lines
841 B
Python

load("//tools:defs.bzl", "go_library")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "metricsviz",
srcs = [
"metricsviz.go",
"metricsviz_groups.go",
"metricsviz_publish.go",
],
visibility = ["//:sandbox"],
deps = [
"//pkg/metric",
"//pkg/metric:metric_go_proto",
"@com_github_docker_docker//api/types:go_default_library",
"@com_github_go_echarts_go_echarts_v2//charts:go_default_library",
"@com_github_go_echarts_go_echarts_v2//components:go_default_library",
"@com_github_go_echarts_go_echarts_v2//opts:go_default_library",
"@com_github_go_echarts_go_echarts_v2//types:go_default_library",
"@org_golang_google_protobuf//encoding/protojson:go_default_library",
],
)