bazelbuild/bazel

place "Garbage Collector" profile track near system stats

Open

#29310 opened on Apr 15, 2026

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Java (25,384 stars) (4,465 forks)batch import
P4help wantedteam-Remote-Exectype: feature request

Description

The "Garbage Collector" profile track is sorted to the top of the perfetto UI by https://github.com/bazelbuild/bazel/blob/ee72e6ddbcf19db6e4ddf127bde56ca5676de780/src/main/java/com/google/devtools/build/lib/profiler/ThreadMetadata.java#L89. In paticular, it's often useful to examine the GC track in conjunction with the memory tracks. While it's possible to reorganize the tracks in the Perfetto UI, I propose to move the GC track down by the rest of the system stats by default.

Contributor guide