Skip to content
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

profile gls binary with pprof to spot bottlenecks in runtime #14

Open
ozansz opened this issue Oct 8, 2022 · 0 comments
Open

profile gls binary with pprof to spot bottlenecks in runtime #14

ozansz opened this issue Oct 8, 2022 · 0 comments
Labels

Comments

@ozansz
Copy link
Owner

ozansz commented Oct 8, 2022

Summary

Folder indexing (tree traversal) seems to be inefficient than it should be, considering it's basically a tree traversal algorithm.
Use pprof tool to find out if there are any bottlenecks in the code, by either:

  1. Writing a benchmark test and running it with the -benchmem, -memprofile, and -cpuprofile options
  2. Setting up a pprof server by using net/http/pprof, and calling it during runtime to capture the CPU/memory dumps
@ozansz ozansz changed the title profile gls binary in runtime to spot bottlenecls profile gls binary with pprof to spot bottlenecks in runtime Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant