firefox-devtools / firefox-devtools/profiler

Perfetto traces converted with traceconv can't be imported on Firefox Profiler

Open
#5,480 1 comment 0 reactions 0 assignees View on GitHub
profile data
Dominant language
TypeScript
Stars
1.5k
Forks
491
Avg merge
3d 5h
Merged PRs (30d)
30

Description

STR:

1. Take an android perfetto trace. For example, open https://ui.perfetto.dev/ and click on "Open Android example", and save it on your machine (using "Download" from the menu).

2. Use [traceconv](https://perfetto.dev/docs/quickstart/traceconv) to convert the profile into a json profile:
```
curl -LO https://get.perfetto.dev/traceconv
chmod +x traceconv
./traceconv json [input proto file] [output file]
```
3. Open [Firefox Profiler](https://profiler.firefox.com/) and import the json file

The json I used can be downloaded [here](https://drive.google.com/file/d/1Etc774jnectdK6aLkrbyVtx46gMm5jpM/view?usp=sharing).

## Expected result

The profile is imported.

## Actual result

The profile fails to be imported, with the following message:

```
Error: No threads were captured in this profile, there is nothing to display.
```

(copied from bug-1968544)

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

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.