Skip to content

analyze-profile is broken with current default profile generated file #10140

Closed

Description

@amarshat

Description of the problem / feature request:

analyze-profile fails with java.util.zip.ZipException while trying to analyze the profile (generated as gunzip)

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

Follow the instructions here: https://docs.bazel.build/versions/master/skylark/performance.html#performance-profiling

bazel build --nobuild --profile=/tmp/prof //path/to/package:build_target
bazel analyze-profile /tmp/prof
WARNING: This information is intended for consumption by Bazel developers only, and may change at any time.  Script against it at your own risk
INFO: Loading /tmp/prof
java.util.zip.ZipException: incorrect header check
ERROR: Failed to analyze profile file(s): incorrect header check

What operating system are you running Bazel on?

Darwin (macOS)

What's the output of bazel info release?

release 1.1.0

Have you found anything relevant by searching the web?

#8840

Activity

  1. added
    team-Performance
    untriaged
    on Nov 25, 2019
  2. drigz commented on Dec 19, 2019

    @drigz
    Contributor

    I also tried using --profile=profile.out.gz which results in a compressed file, but analyze-profile still fails.

  3. self-assigned this
    on Jan 9, 2020
  4. added
    P1
    and removed
    untriaged
    on Jan 9, 2020
  5. gydeveloper commented on Jan 30, 2020

    @gydeveloper

    Wanted to check-in and see if there is any update on this? Thanks!

  6. meisterT commented on Jan 31, 2020

    @meisterT
    Member

    See the most recent commit that is associated with it. Bazel (at HEAD) can now print a basic human readable summary from the JSON output.

  7. thekyz commented on Feb 27, 2020

    @thekyz

    @meisterT might I ask what commands you're using to get that data? tried with the commit you mentionned but analyze-profile is still failing with the same errors

  8. meisterT commented on Feb 27, 2020

    @meisterT
    Member

    @thekyz can you try with https://releases.bazel.build/2.2.0/rc1/index.html ?

    That works for me. If it doesn't work for you, then please tell me how to repro it.

  9. thekyz commented on Feb 27, 2020

    @thekyz
  10. jin commented on Apr 28, 2020

    @jin
    Member

    Fix verified, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1team-Performance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions