profiler icon indicating copy to clipboard operation
profiler copied to clipboard

Imported Chrome profiles don't include DOM event names

Open jrmuizel opened this issue 3 years ago • 3 comments

e.g. something like:

{"args":{"data":{"type":"volumechange"}},"cat":"devtools.timeline","dur":28960,"name":"EventDispatch","ph":"X","pid":7880,"tdur":23969,"tid":8416,"ts":3549324456,"tts":25791815},

doesn't include volumechange only EventDispatch

┆Issue is synchronized with this Jira Task

jrmuizel avatar Jan 11 '22 15:01 jrmuizel

An example profile: Profile-20220110T144641.json.zip

jrmuizel avatar Jan 11 '22 16:01 jrmuizel

Thanks!

I see the data object is imported in the profiler marker payload data.data. So it ends up in data.data.type.

I wonder if adding a marker schema for EventDispatch would just work here...

julienw avatar Jan 11 '22 16:01 julienw

Currently we can't access properties in nested objects, but maybe we can override the type CompleteTraceEvent (and others) with whatever type is inside the arg data. I'm not sure we do anything with these types.

julienw avatar Jan 11 '22 16:01 julienw