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

feat: Add a --trace option to shorebird for debugging #2568

Open
eseidel opened this issue Oct 22, 2024 · 2 comments
Open

feat: Add a --trace option to shorebird for debugging #2568

eseidel opened this issue Oct 22, 2024 · 2 comments

Comments

@eseidel
Copy link
Contributor

eseidel commented Oct 22, 2024

Maybe to try recording a dart vm timeline?

https://dart.googlesource.com/sdk/+/refs/tags/3.3.4/runtime/docs/timeline.md

e.g. something like dart --timeline_recorder=file:mytimeline.json --timeline_streams=VM,Isolate,GC,Dart hello.dart

that would make it very easy for us to grab a trace of execution. Depending on what streams we record we could even have customers collect these for debugging.

@eseidel
Copy link
Contributor Author

eseidel commented Oct 22, 2024

You can run shorebird_cli.dart directly in dart run this way, but it might be easier to add --trace or --observe to the shorebird shell wrapper to help that? Not sure.

@eseidel
Copy link
Contributor Author

eseidel commented Oct 22, 2024

I guess I wish to be less prescriptive as to the solution, and more that we should figure out ways to help us debug long runtimes/hangs in shorebird, ideally in a way that customers can gather some debug info for us.

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

1 participant