blob: 8f10c93952b4821d1cbdc2d17319f3cf8a06451e [file] [log] [blame]
package(default_visibility = ["//src:__subpackages__"])
filegroup(
name = "srcs",
srcs = glob(["**"]),
visibility = ["//src/main/java/com/google/devtools/build/lib:__pkg__"],
)
java_library(
name = "profiler",
srcs = glob([
"*.java",
]),
visibility = ["//visibility:public"],
deps = [
"//src/main/java/com/google/devtools/build/lib:base-util",
"//src/main/java/com/google/devtools/build/lib/clock",
"//src/main/java/com/google/devtools/build/lib/collect",
"//src/main/java/com/google/devtools/build/lib/concurrent",
"//src/main/java/com/google/devtools/common/options",
"//third_party:flogger",
"//third_party:gson",
"//third_party:guava",
"//third_party:jsr305",
],
)
# Profiler chart library.
java_library(
name = "profiler-output",
srcs = glob([
"analysis/*.java",
"chart/*.java",
"output/*.java",
"statistics/*.java",
]),
deps = [
":profiler",
"//src/main/java/com/google/devtools/build/lib:util",
"//src/main/java/com/google/devtools/build/lib/actions",
"//src/main/java/com/google/devtools/build/lib/vfs",
"//third_party:guava",
"//third_party:jsr305",
],
)
java_binary(
name = "profiler-grapher",
srcs = glob([
"grapher/*.java",
]),
main_class = "com.google.devtools.build.lib.profiler.grapher.ProfileGrapher",
deps = [
":profiler",
"//third_party:gson",
"//third_party:guava",
],
)