firefox-devtools / firefox-devtools/profiler

Cannot open Chrome Trace Event profile

Open
#4,915 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 46m
Merged PRs (30d)
27

Description

This file cannot be loaded into firefox profiler. To my knowledge, it conforms to the Chrome Trace Event format as specified by Google's documentation. Ref: https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview

```json
[
{"name": "Initialization", "cat": "", "ph": "X", "pid": 346905, "tid": 346905, "ts": 2343, "dur": 100}
]
```

The error message is:

```
Error: Unserializing the profile failed: Error: This does not appear to be a valid Gecko Profile, there is no meta field.
```

In fact, Firefox profiler cannot even open the file shown in that document as an example:

```json
[ {"name": "Asub", "cat": "PERF", "ph": "B", "pid": 22630, "tid": 22630, "ts": 829},
{"name": "Asub", "cat": "PERF", "ph": "E", "pid": 22630, "tid": 22630, "ts": 833} ]
```

The same file can be opened fine by other tools that support Trace Events format.

┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-42)

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.