jlfwong / jlfwong/speedscope

Detect startValue/endValue in .speedscope.json files

Open
#287 5 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

When omitting startValue/endValue, Speedscope hangs the browser when using current-day timestamps:

```JSON
{
"$schema": "https://www.speedscope.app/file-format-schema.json",
"version": "0.0.1",
"profiles": [
{
"events": [
{
"type": "O",
"frame": 0,
"at": 1592385255
},
{
"type": "C",
"frame": 0,
"at": 1592385255
}
],
"type": "evented",
"unit": "seconds"
}
],
"shared": {
"frames": [
{
"name": "foo"
}
]
}
}
```

If not present, SpeedScope should detect the range of events automatically.

Contributor guide

Open the contributing guide

Research direction

Use the minimal .speedscope.json example in the issue as a reproduction, then trace profile loading and event-range handling in the TypeScript application. Verify the behavior with current-day timestamps and omitted startValue/endValue. Done means the event range is detected automatically and the browser no longer hangs.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.