firefox-devtools / firefox-devtools/profiler

Teach gecko profile processing to use the marker schema to properly offset timestamps

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

Description

Right now we have lots of custom handling. This could be done purely with marker schema.

e.g. for Network markers:

```
if (newData.type === 'Network') {
if (typeof newData.domainLookupStart === 'number') {
newData.domainLookupStart += delta;
}
if (typeof newData.domainLookupEnd === 'number') {
newData.domainLookupEnd += delta;
}
if (typeof newData.connectStart === 'number') {
newData.connectStart += delta;
}
```

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

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.