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

refactor: unify query and query-blocks #3623

Closed
wants to merge 2 commits into from
Closed

Conversation

alsoba13
Copy link
Contributor

@alsoba13 alsoba13 commented Oct 14, 2024

In this PR:

  • We unify query-blocks into query. Now, in the presence of --block flag, the query will be performed directly on a local/remote block instead of using a pyroscope server.
  • We deprecate profilecli query merge in favor of profilecli query profile. Old merge gets hidden from doc (although still runnable) and logs a deprecation notice.
  • Other minor code refactors, mostly moving lines from one file to another.

@@ -65,11 +65,11 @@ func main() {
tsdbSeriesFiles := tsdbSeriesCmd.Arg("file", "tsdb file path").Required().ExistingFiles()

queryCmd := app.Command("query", "Query profile store.")
queryMergeCmd := queryCmd.Command("merge", "Request merged profile.")
queryMergeOutput := queryMergeCmd.Flag("output", "How to output the result, examples: console, raw, pprof=./my.pprof").Default("console").String()
Copy link
Contributor Author

@alsoba13 alsoba13 Oct 14, 2024

Choose a reason for hiding this comment

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

Output flag is used in both merge and go-pgo. We can safely move it to addQueryMergeParams which is also called by addQueryGoPGOParams.

Base automatically changed from alsoba13/query-blocks-merge to main October 14, 2024 14:31
@alsoba13 alsoba13 closed this Oct 15, 2024
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.

1 participant