Move GoogleAutoProfilerUtils.java to an unused target.
See my comment in the BUILD file in for context.
RELNOTES: None
@@ -10,15 +10,21 @@ filegroup(
java_library(
name = "profiler",
- srcs = glob(
- [
- "*.java",
+ srcs = [
+ "AutoProfiler.java",
+ "CollectLocalCpuUsage.java",
+ "MemoryProfiler.java",
+ "MetricData.java",
+ "PredicateBasedStatRecorder.java",
+ "ProfilePhase.java",
+ "ProfilePhaseStatistics.java",
+ "Profiler.java",
+ "ProfilerTask.java",
+ "SilentCloseable.java",
+ "SingleStatRecorder.java",
+ "StatRecorder.java",
+ "TimeSeries.java",
],
- exclude = [
- # Not used anywhere, but adds dependency to flogger
- "GoogleAutoProfilerUtils.java",
- ],
- ),
visibility = ["//visibility:public"],
deps = [
"//src/main/java/com/google/devtools/build/lib:base-util",
@@ -32,6 +38,15 @@ java_library(
],
)
+java_library(
+ name = "google-auto-profiler-utils",
+ srcs = ["GoogleAutoProfilerUtils.java"],
+ deps = [
+ ":profiler",
+ "//third_party:flogger",
+ ],
+)
+
# Profiler chart library.
java_library(
name = "profiler-output",
