[Build] extract_unwind_tables.py: Remove temp file usage.
extract_unwind_tables.py calls dump_syms, and processes ~400 MB of data from ~105 M lines. Previously these data were written to a temp file, which is then opened and read line-by-line. This approach creates churn, and is prone to out-of-disk-space problem. This CL removes temp file usage by directly piping dump_syms output to _ParseCfiData(), using subprocess.Popen(bufsize=-1)'s |stdout|. Run time is unaffected. Fixed: 1068862 Change-Id: Iaa0d433dcb91a8b15fff4dd6ce0a34fcba8d6376 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2141220 Commit-Queue: Samuel Huang <huangs@chromium.org> Reviewed-by:Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#757740}
Showing
Please register or sign in to comment