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

Saving TimerOutput to file #112

Closed
anandijain opened this issue Apr 22, 2021 · 3 comments
Closed

Saving TimerOutput to file #112

anandijain opened this issue Apr 22, 2021 · 3 comments

Comments

@anandijain
Copy link

Hello, thanks for this package.

I'm wondering what the recommended way to write a TimerOutput to a human and computer readable file is.

I saw a closed issue about exporting to DataFrame. I don't think I'll need anything that heavy.

It looks like I can just use show(io, to) but I didn't see anything in the readme for this, so just wanted to ask.

This way would also be only human readable I think.

@KristofferC
Copy link
Owner

For just writing the pretty printed version then just calling e.g print_timer or show to a file IO is indeed the way to do it.

@anandijain
Copy link
Author

And I assume that machine readable is not currently possible then?

@KristofferC
Copy link
Owner

You can just use the Serialization standard library to write arbitrary julia types to a file and reload them in another Julia session if that is what yiu want.

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

No branches or pull requests

2 participants