Add docstring to perf_builder()

Bug: b/244275800
Change-Id: Ic305dafe57d63f3ca0cabe6841732773cbc21c37
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/274721
Commit-Queue: Junji Watanabe <jwata@google.com>
Auto-Submit: Junji Watanabe <jwata@google.com>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38042}
This commit is contained in:
Junji Watanabe 2022-09-09 17:48:23 +09:00 committed by WebRTC LUCI CQ
parent c92338a13d
commit a842c389bc

View File

@ -619,6 +619,17 @@ def try_builder(
)
def perf_builder(name, perf_cat, **kwargs):
"""Add a perf builder.
Args:
name: builder name (str).
perf_cat: the category + name for the /perf/ console, or None to omit from the console.
**kwargs: Pass on to webrtc_builder / luci.builder.
Returns:
A luci.builder.
Notifications are also disabled.
"""
add_milo(name, {"perf": perf_cat})
properties = make_goma_properties()
properties["builder_group"] = "client.webrtc.perf"