Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The analyze-profile output is not properly formatted #15888

Closed
rsalvador opened this issue Jul 15, 2022 · 0 comments
Closed

The analyze-profile output is not properly formatted #15888

rsalvador opened this issue Jul 15, 2022 · 0 comments

Comments

@rsalvador
Copy link
Contributor

Description of the bug:

The current bazel analyze-profile format output is not propertly formatted and looks like:

=== PHASE SUMMARY INFORMATION ===

Total launch phase time         1.486 s    0.51%
Total init phase time           0.422 s    0.15%
Total target pattern evaluation phase time    6.203 s    2.15%
Total interleaved loading-and-analysis phase time  100.341 s   34.71%
Total preparation phase time    0.376 s    0.13%
Total execution phase time    180.205 s   62.33%
Total finish phase time         0.086 s    0.03%
------------------------------------------------
Total run time                289.121 s  100.00%

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Run bazel analyze-profile .../command.profile.gz

Which operating system are you running Bazel on?

OSX

What is the output of bazel info release?

development version

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

bazel build //src:bazel

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

ssh://[email protected]/bazelbuild/bazel.git
cf67e5d567e7c76f769b21c8ebca8f8ce689e89e
cf67e5d567e7c76f769b21c8ebca8f8ce689e89e

Have you found anything relevant by searching the web?

no

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

No response

aranguyen pushed a commit to aranguyen/bazel that referenced this issue Jul 20, 2022
The current output of `bazel analyze-profile ...` is not properly formatted and looks like:
```
=== PHASE SUMMARY INFORMATION ===

Total launch phase time         1.486 s    0.51%
Total init phase time           0.422 s    0.15%
Total target pattern evaluation phase time    6.203 s    2.15%
Total interleaved loading-and-analysis phase time  100.341 s   34.71%
Total preparation phase time    0.376 s    0.13%
Total execution phase time    180.205 s   62.33%
Total finish phase time         0.086 s    0.03%
------------------------------------------------
Total run time                289.121 s  100.00%
```

this fixes it to:
```
=== PHASE SUMMARY INFORMATION ===

Total launch phase time                              1.486 s    0.51%
Total init phase time                                0.422 s    0.15%
Total target pattern evaluation phase time           6.203 s    2.15%
Total interleaved loading-and-analysis phase time  100.341 s   34.71%
Total preparation phase time                         0.376 s    0.13%
Total execution phase time                         180.205 s   62.33%
Total finish phase time                              0.086 s    0.03%
---------------------------------------------------------------------
Total run time                                     289.121 s  100.00%
```

Fixes bazelbuild#15888

Closes bazelbuild#15889.

PiperOrigin-RevId: 462086875
Change-Id: I2be6829e4e1566d6db1322fc6c19b4345a552ed7
aranguyen pushed a commit to aranguyen/bazel that referenced this issue Jul 20, 2022
The current output of `bazel analyze-profile ...` is not properly formatted and looks like:
```
=== PHASE SUMMARY INFORMATION ===

Total launch phase time         1.486 s    0.51%
Total init phase time           0.422 s    0.15%
Total target pattern evaluation phase time    6.203 s    2.15%
Total interleaved loading-and-analysis phase time  100.341 s   34.71%
Total preparation phase time    0.376 s    0.13%
Total execution phase time    180.205 s   62.33%
Total finish phase time         0.086 s    0.03%
------------------------------------------------
Total run time                289.121 s  100.00%
```

this fixes it to:
```
=== PHASE SUMMARY INFORMATION ===

Total launch phase time                              1.486 s    0.51%
Total init phase time                                0.422 s    0.15%
Total target pattern evaluation phase time           6.203 s    2.15%
Total interleaved loading-and-analysis phase time  100.341 s   34.71%
Total preparation phase time                         0.376 s    0.13%
Total execution phase time                         180.205 s   62.33%
Total finish phase time                              0.086 s    0.03%
---------------------------------------------------------------------
Total run time                                     289.121 s  100.00%
```

Fixes bazelbuild#15888

Closes bazelbuild#15889.

PiperOrigin-RevId: 462086875
Change-Id: I2be6829e4e1566d6db1322fc6c19b4345a552ed7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants