-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the cycle between vfs and profiler.
- Move ProfilerInfo into a subpackage (it's not necessary for profiling, just for analyzing a profile). - Make some fields in Profiler public for ProfileInfo. - Mark Profiler as ThreadSafe; there's no cyclic dependency here. This is based on ulfjack's microbazel patch series: ulfjack@44553fc PiperOrigin-RevId: 167121952
- Loading branch information
Showing
26 changed files
with
161 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
src/main/java/com/google/devtools/build/lib/profiler/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package( | ||
default_visibility = ["//src:__subpackages__"], | ||
) | ||
|
||
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:concurrent", | ||
"//src/main/java/com/google/devtools/build/lib:os_util", | ||
"//src/main/java/com/google/devtools/build/lib:preconditions", | ||
"//src/main/java/com/google/devtools/build/lib/shell", | ||
"//src/main/java/com/google/devtools/common/options", | ||
"//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:vfs", | ||
"//src/main/java/com/google/devtools/build/lib/actions", | ||
"//third_party:guava", | ||
"//third_party:jsr305", | ||
], | ||
) | ||
|
||
filegroup( | ||
name = "srcs", | ||
srcs = glob(["**"]), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.