-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report is missing elements #38
Comments
I test it on Linux and seems vendor packages cost 683 kb and standard library packages cost 2.23 mb. |
Maybe the rendered colours are a bit misleading, I would add different colours for different package types |
I thought the unknown sections size on the right hand side (coloured in light red) which is also like 2 MB was the standard lib. Is it not? |
Generally, unknown is meta information in the binary format itself, such as elf's section header and program header. but it's generally not that big, so if you can provide a sample of the binary file, I can do further analysis. |
@Zxilly Putting below all the information i can get including the binary file. Can you kindly re open this issue? Zipped binarySize Screenshotgsa version$ gsa --version
gsa
Version v1.0.6
Go Version go1.22.3
Platform darwin/arm64 Screenshot of startup Warning messagelevel=WARN msg="Warning: disassembler not supported for this architecture" |
It does look like there are some issues with macos support, but I think I'd have a hard time fixing it, I work on amd64 on Windows/Linux and support for other architectures and systems is basically based on documentation rather than real experience. I test the binary from the https://github.com/kishaningithub/tf-import-gen/releases/download/v0.8.0/tf-import-gen_0.8.0_linux_amd64.tar.gz and results looks better. As you can see from the figure, the binary size can be reduced by about 6m after stripping the symbol and debug information. |
Will check the Linux version today.. Was curious to see how much size can be reduced without removing the debug and symbol table info |
Also I can definitely help out on testing and improving this tool for Mac os |
After removing the symbol table and debug information the compressed size went from ~3MB to ~1MB :-) screenshot and link below https://github.com/kishaningithub/tf-import-gen/releases Screenshot |
I ran this for my tool tf-import-gen. The unstripped binary size is ~6.2 MB and i wanted to look into what was causing it.
What i did
CGO_ENABLED=0 go build
gsa --web ./tf-import-gen
What i saw
If you see in the below screenshot the "Package Size" is 2.81 MB but the largest bar within that "Vendor packages size" ~591 KB hence i am not sure where the mega bytes are going
Screenshot 1
Screenshot 2
The text was updated successfully, but these errors were encountered: