bazelbuild / bazelbuild/bazel

starlark_cpu_profile support for cquery --output=starlark

Open
#19,460 1 comment 0 reactions 1 assignee Claimed by @joeleba View on GitHub
P2 team-Performance type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 16h
Merged PRs (30d)
72

Description

### Description of the feature request:

My team uses `cquery` with `--output=starlark` and complicated starlark expressions to understand our build graph.

`--starlark-cpu-profile` does a good job of identifying performance bottlenecks in starlark of our rules/macros. However, we would like to do similar analysis on our cquery starlark expression. However, `starlark-cpu-profile` on a cquery command seems to apply only to the starlark invoked during analysis, and not during cquery.

It would be great if we could have `--starlark-cpu-profile` apply to the cquery starlark expression (or offer an alternative flag `--cquery-cpu-profile` to do so).

### Which category does this issue belong to?

Performance

### What underlying problem are you trying to solve with this feature?

_No response_

### Which operating system are you running Bazel on?

_No response_

### What is the output of `bazel info release`?

_No response_

### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.

_No response_

### What's the output of `git remote get-url origin; git rev-parse master; git rev-parse HEAD` ?

_No response_

### Have you found anything relevant by searching the web?

_No response_

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.