Commit Graph

5 Commits

Author SHA1 Message Date
xgopilot
ae690476ba fix: address code review feedback for size report feature
- Fix error handling priority: check waitErr first, then parseErr, then closeErr
- Optimize O(n²) symbol lookup by checking next symbol first
- Add ELF section constants (SHN_LORESERVE, SHN_ABS, etc.) and use them
- Fix documentation: add missing --elf-output-style=LLVM flag
- Fix documentation: correct field names from pkg.ID to pkg.PkgPath

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: cpunion <8459+cpunion@users.noreply.github.com>
2025-11-17 08:15:12 +00:00
Li Jie
dc39b84187 fix size report parser for elf 2025-11-17 15:31:34 +08:00
Li Jie
faa5330b69 build: fix llvm-readelf call 2025-11-17 15:11:06 +08:00
xgopilot
8e5b34057e fix: address code review feedback for size report feature
- Add bounds checking for uint64→int conversion to prevent overflow
- Reduce max buffer size from 64MB to 4MB with documented constants
- Add comprehensive comments to symbol-to-size calculation algorithm
- Document moduleNameFromSymbol function and symbol naming conventions

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: cpunion <8459+cpunion@users.noreply.github.com>
2025-11-17 06:34:23 +00:00
Li Jie
cee22db053 feat: add size level aggregation 2025-11-17 14:09:27 +08:00