This is an archive of the discontinued LLVM Phabricator instance.

[Debugify][OriginalDIMode] Update script to handle large JSON reports
ClosedPublic

Authored by ntesic on Dec 13 2021, 2:51 AM.

Details

Summary

This patch updates llvm/utils/llvm-original-di-preservation.py to create more compact
HTML verify-debuginfo-preserve reports by:

  • removing duplicated debug info bugs,
  • introducing -compress option to create highly compressed report.

Additionally, this patch makes script able to process very large JSON inputs (larger than 2 GB).
That is done by reading & analyzing JSON report in chunks.

Diff Detail

Event Timeline

ntesic created this revision.Dec 13 2021, 2:51 AM
ntesic requested review of this revision.Dec 13 2021, 2:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 13 2021, 2:51 AM
djtodoro added inline comments.Sep 22 2022, 1:45 AM
llvm/utils/llvm-original-di-preservation.py
416–417

nit: extra new line

Herald added a project: Restricted Project. · View Herald TranscriptSep 22 2022, 1:45 AM
djtodoro accepted this revision.Sep 22 2022, 1:46 AM
This revision is now accepted and ready to land.Sep 22 2022, 1:46 AM
ntesic updated this revision to Diff 462496.Sep 23 2022, 8:25 AM

@djtodoro Thanks for the review!

  • Rebase on top of the D115616
  • Remove extra new line
ntesic marked an inline comment as done.Sep 23 2022, 8:26 AM