Skip to content

zoekt: add fgprof for full profiling#614

Merged
keegancsmith merged 3 commits into
mainfrom
k/fgprof
Jul 14, 2023
Merged

zoekt: add fgprof for full profiling#614
keegancsmith merged 3 commits into
mainfrom
k/fgprof

Conversation

@keegancsmith

Copy link
Copy Markdown
Member

Useful in local testing to capture both on and off cpu time spent. Should consider shipping this in the webserver as well.

Test Plan: ran zoekt with -full_profile flag and inspected output in pprof.

Useful in local testing to capture both on and off cpu time spent.
Should consider shipping this in the webserver as well.

Test Plan: ran zoekt with -full_profile flag and inspected output in
pprof.
@keegancsmith keegancsmith requested a review from stefanhengl July 13, 2023 13:30
Comment thread cmd/zoekt/main.go Outdated
t := time.Now()
stopProfile := fgprof.Start(f, fgprof.FormatPprof)
for {
sres, _ = searcher.Search(context.Background(), q, &sOpts)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sres, _ = searcher.Search(context.Background(), q, &sOpts)
sres, _ = searcher.Search(context.Background(), query, &sOpts)

@keegancsmith keegancsmith merged commit f9d3a0e into main Jul 14, 2023
@keegancsmith keegancsmith deleted the k/fgprof branch July 14, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants