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

jfrparser-cli: add cli that formats json #30

Merged
merged 10 commits into from
Apr 28, 2024

Conversation

tomershafir
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Apr 16, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you put the file next to the jfr file?

Format(*parser.Parser) ([]byte, error)
}

// TODO: mov jfr2pprof here
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you add pprof here and remove jfr2pprof ? we don't need two converters


func (f *formatterJson) appendInit(p *parser.Parser) error {
var err error
f.outBuf = append(f.outBuf, []byte("[{\"Header\":")...)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this json building manual?

@tomershafir
Copy link
Contributor Author

@korniltsev addressed comments and more

@korniltsev korniltsev merged commit f984a37 into grafana:main Apr 28, 2024
2 checks passed
@tomershafir tomershafir deleted the jfrparser-cli branch April 28, 2024 12:20
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.

None yet

3 participants