Bug 263334 - Web Inspector: Worker Info not Visible In Most Timeline Profile Views like JavaScript & Events
Summary: Web Inspector: Worker Info not Visible In Most Timeline Profile Views like Ja...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 17
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-18 13:04 PDT by Joseph Martinsen
Modified: 2023-10-25 13:05 PDT (History)
3 users (show)

See Also:


Attachments
Timeline recording missing worker events (4.36 MB, application/json)
2023-10-18 13:04 PDT, Joseph Martinsen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Martinsen 2023-10-18 13:04:22 PDT
Created attachment 468263 [details]
Timeline recording missing worker events

Worker thread info does not appear to show up in any Timeline views other than CPU usage. 


Some initial discussion in the slack WebKit#web-inspector-help and initial findings and basic repro case from Razvan Caliman
: https://webkit.slack.com/archives/CU80T42P9/p1696870632997349


Repro case: 

1. Navigate to https://mdn.github.io/dom-examples/web-workers/fibonacci-worker/ (source code: https://github.com/mdn/dom-examples/tree/3e75d616aba9c98c2b31c269e7e28089ffe43529/web-workers/fibonacci-worker)
2. Open Web Inspector>Timelines and start recording a profile.
3. Enter a number in the input field and click submit (worker thread will execute the calculation via fibonacci.js).
4. End recording

Expected:

    JavaScript & Events should show that the fibonacci function (or worker onmessage) ran.

Actual:

    JavaScript & Events only originating from the UI thread show up.

Timeline recording going through the above steps is attached. 
Safari Version 17.0 (19616.1.27.211.1)
Comment 1 Radar WebKit Bug Importer 2023-10-25 13:05:19 PDT
<rdar://problem/117491838>