jlfwong / jlfwong/speedscope

format: Chrome Trace with instant samples

Open
#402 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.8k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

👋🏻 Hi!

I was trying to visualise the following Chrome Trace in speedscope, but unfortunately, I get an error.

```json
{
"traceEvents": [
{"name": "hi", "cat": "none", "ph": "i", "pid": 22630, "tid": 22630, "ts": 829, "stack": ["a", "b", "c"]},
],
"displayTimeUnit": "ns",
"otherData": {
"version": "none"
},
"samples": []
}
```

I have it stored under `test.json`, and either dragging it or selecting it in the file browser results in this alert:

> Unrecognized format! See documentation about supported formats.

Perhaps I have misunderstood something about the Chrome Trace format, or I have made some mistake. I have tried on [Perfetto](https://ui.perfetto.dev/) and it worked (almost) right. Notice the missing stacks. But perhaps I don't know how to use its UI 😅 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.