You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
analyze-profile: java.util.zip.ZipException: incorrect header check OR out of date profiling documentation #8840
looks good so far. Then I try to analyze the profile and this happens:
$ bazel analyze-profile /home/greg/bazel_prof_yo
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 /home/greg/bazel_prof_yo
java.util.zip.ZipException: incorrect header check
ERROR: Failed to analyze profile file(s): incorrect header check
changed the title [-]analyze-profile: java.util.zip.ZipException: incorrect header check[/-][+]analyze-profile: java.util.zip.ZipException: incorrect header check OR out of date profiling documentation[/+]on Jul 9, 2019
@meisterT Curious, why analyze-profile was deprecated? It was really beneficial for us to parse the phase information as part of our CI and publish this in a data-warehouse for analysis-
=== PHASE SUMMARY INFORMATION ===
Total launch phase time 978 ms 2.67%
Total init phase time 178 ms 0.49%
Total loading phase time 381 ms 1.04%
Total analysis phase time 2.618 s 7.15%
Total preparation phase time 46.0 ms 0.13%
Total execution phase time 32.366 s 88.46%
Total finish phase time 19.3 ms 0.05%
Total run time 36.586 s 100.00%
The trace files are good for diving deeper into an issue, but not well suite for gathering daily CI build stats. We have a large project, with 150 gradle modules. We'd like to monitor when regressions to our build time occurs.
Let me know if you have any other suggestions that I may have missed. Trace files seem to solve a different problem IMO.
Thanks!
Reacted by Sanjari Srivastava, igal Harel, Sage Rodriguez Orellana, Sean Xiaowen Zhang, thekyz, Mikhail Tymchuk, Mihai Galos and Alex Lapin (alapin)
Curious, why analyze-profile was deprecated? It was really beneficial for us to parse the phase information as part of our CI and publish
Curious about this too.. it seems the two profile modes served different use cases. @meisterT is there a way of getting a simple summary using the new profiler?
Activity
ghorn commentedon Jul 9, 2019
The profile output file is human readable, looks like a json doc. Could the problem be that it is expected to be zipped?
ghorn commentedon Jul 9, 2019
Hmm... this file is compatible with
chrome://tracing. Did--experimental_generate_json_trace_profilebecome standard? If so then the problem is https://docs.bazel.build/versions/master/skylark/performance.html#performance-profiling being out of date.[-]analyze-profile: java.util.zip.ZipException: incorrect header check[/-][+]analyze-profile: java.util.zip.ZipException: incorrect header check OR out of date profiling documentation[/+]meisterT commentedon Jul 11, 2019
We do want to make the JSON profile the default, but that should not have happened yet. I'll investigate.
meisterT commentedon Jul 11, 2019
Ah, we already did that, so it's a documentation issue and not a bug.
See #8312 and https://blog.bazel.build/2019/06/17/bazel-0.27.0.html
gydeveloper commentedon Oct 2, 2019
@meisterT Curious, why analyze-profile was deprecated? It was really beneficial for us to parse the phase information as part of our CI and publish this in a data-warehouse for analysis-
The trace files are good for diving deeper into an issue, but not well suite for gathering daily CI build stats. We have a large project, with 150 gradle modules. We'd like to monitor when regressions to our build time occurs.
Let me know if you have any other suggestions that I may have missed. Trace files seem to solve a different problem IMO.
Thanks!
jin commentedon Oct 17, 2019
@meisterT do you have any insight as to why this information isn't part of BEP?
sansri264 commentedon Oct 29, 2019
Is there an alternative way to get the Critical path section's information with the new json profile?
drigz commentedon Dec 19, 2019
Also, docs for
--profilestill say to usebazel analyze-profile:https://docs.bazel.build/versions/master/command-line-reference.html:
SrodriguezO commentedon Jan 6, 2020
Curious about this too.. it seems the two profile modes served different use cases. @meisterT is there a way of getting a simple summary using the new profiler?
meisterT commentedon Jan 9, 2020
Not yet, but I am working on it.
meisterT commentedon Jan 9, 2020
Work will be tracked in #10140