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

Add separate events output in sexp or binio format #253

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

Istlemin
Copy link

@Istlemin Istlemin commented Aug 3, 2022

This feature adds the argument -events-output=FILENAME and -callstacks.

Magic trace will dump all events to the events-output file,
either in sexp or binio format depending on the suffix.

If the flag -callstacks is set, for every event the current callstack will
also be dumped, using a compression algorithm to reduce size.

@Istlemin Istlemin force-pushed the events-output branch 2 times, most recently from 61814f8 to 9df0af4 Compare August 3, 2022 17:27
@cgaebel
Copy link
Contributor

cgaebel commented Aug 6, 2022

Would you please rebase this onto the latest master before I take a look? It looks like this PR is based on code from March.

@cgaebel cgaebel self-requested a review August 6, 2022 16:58
Copy link
Contributor

@cgaebel cgaebel left a comment

Choose a reason for hiding this comment

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

I'm still reviewing this. Just some initial comments for now while I take a break.

src/callstack_compression.mli Outdated Show resolved Hide resolved
test/callstack_compression_test.ml Outdated Show resolved Hide resolved
src/tracing_tool_output.ml Outdated Show resolved Hide resolved
src/tracing_tool_output.ml Outdated Show resolved Hide resolved
@Istlemin Istlemin force-pushed the events-output branch 4 times, most recently from a92e286 to aea473c Compare August 16, 2022 15:40
src/trace.ml Outdated Show resolved Hide resolved
src/tracing_tool_output.mli Outdated Show resolved Hide resolved
src/trace_writer.ml Outdated Show resolved Hide resolved
src/trace_writer.ml Outdated Show resolved Hide resolved
src/trace_writer.ml Outdated Show resolved Hide resolved
src/trace_writer.ml Show resolved Hide resolved
@cgaebel
Copy link
Contributor

cgaebel commented Aug 24, 2022

LGTM. Would you please squash your changes into a single commit before I merge this?

@cgaebel cgaebel self-requested a review August 24, 2022 12:44
Signed-off-by: Fredrik Ekholm <fekholm@janestreet.com>
@cgaebel cgaebel merged commit 2f9e491 into janestreet:master Aug 25, 2022
@cgaebel
Copy link
Contributor

cgaebel commented Aug 25, 2022

Thank you!

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