-
Notifications
You must be signed in to change notification settings - Fork 236
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
format: Chrome Trace with instant samples #402
Comments
Just saw this in the docs:
Would be amazing if Speedscope could support "instant" events. I remembered I had tried with "BEGIN" / "END" events, and this failed, too, with the same error message: {
"traceEvents": [
{"name": "hi", "cat": "none", "ph": "B", "pid": 22630, "tid": 22630, "ts": 829, "stack": ["a", "b", "c"]},
{"name": "hi", "cat": "none", "ph": "E", "pid": 22630, "tid": 22630, "ts": 849, "stack": ["a", "b", "c"]},
],
"displayTimeUnit": "ns",
"otherData": {
"version": "none"
},
"samples": []
} |
@javierhonduco I might be missing something but neither of those look like valid formats according to the spec. Trace events do not have a stack property - if you want to specify stackFrames at a timestamp, you can use the json object format - I'm adding support for it here. ![]() |
@zacharyfmarion this is great news, thanks so much! 🎉 |
👋🏻 Hi!
I was trying to visualise the following Chrome Trace in speedscope, but unfortunately, I get an error.
I have it stored under
test.json
, and either dragging it or selecting it in the file browser results in this alert:Perhaps I have misunderstood something about the Chrome Trace format, or I have made some mistake. I have tried on Perfetto and it worked (almost) right. Notice the missing stacks. But perhaps I don't know how to use its UI 😅 .
The text was updated successfully, but these errors were encountered: