-
Couldn't load subscription status.
- Fork 1.4k
Add pretty print for dump #2228
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️😍😍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at some point it’d also be nice to get something that is machine parseable. For example, new line delimited json; one line per fiber. That works very well with tools like jq.
|
@iravid Agreed! We should integrate that into zmx, a machine readable mode for all the dumps and metrics. |
I'll work on that next week |
| } | ||
|
|
||
| s""" | ||
| ${name}#${fiberId.seqNumber} (${lifeMsg}) ${waitMsg}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you have to use stripMargin here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries 🤗 You will have to prefix with | every line though, like this:
s"""
|${name}#${fiberId.seqNumber} (${lifeMsg}) ${waitMsg}}
| Status: ${statMsg}
|${trace.prettyPrint}
|""".stripMargin* Add pretty print for dump * Small tweaks to pretty printing * Strip Margin
No description provided.