New issue
Advanced search Search tips

Issue 754930 link

Starred by 2 users

Issue metadata

Status: Duplicate
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Profiles don't include samples from inline modules

Project Member Reported by justinfagnani@google.com, Aug 12 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.39 Safari/537.36

Steps to reproduce the problem:
1. Do some work in an inline module (script/type=module)
2. Record a profile
3. Notice nothing in the flame chart or or profiles

See a reproduction here: https://jsbin.com/cirijawoyu/1/edit?html,console,output

What is the expected behavior?
Samples in flame chart and profile aggregation

What went wrong?
No data appears

Did this work before? No 

Chrome version: 61.0.3163.39  Channel: beta
OS Version: OS X 10.12.5
Flash Version:
 

Comment 1 by adamk@chromium.org, Aug 12 2017

Cc: module-dev@chromium.org neis@chromium.org adamk@chromium.org
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Alexey, can you take a look?
Sorry, I got the association with inline modules wrong, the problem occurs still with external modules. The real issue is that samples aren't shown for code that executes in the first event loop for a script. Wrap the example in the jsbin in a setTimeout or microtask, and samples are visible.

Comment 3 by neis@chromium.org, Aug 13 2017

Cc: marja@chromium.org
+marja who's started doing some modules benchmarking recently.
Owner: kozy@chromium.org

Comment 5 by kozy@chromium.org, Nov 16 2017

Mergedinto: 721888
Status: Duplicate (was: Assigned)
I believe that @alph is about to fix this one.

Sign in to add a comment