Reenabling callstack_instrument
turban1988 opened this issue · 2 comments
Hi,
we want to use the callstack_instrument
(browser_param.callstack_instrument = True
) function in an experiment, but it is currently not supported. Do you have any hints or starting points on how we can fix it to utilize it?
Best and stay safe
Hey,
afaik this code was originally based on the Firefox Dev tools implementation for showing the Initiator in the Network view. However, I couldn't keep up maintenance, as this was not implemented by me and this part of the Firefox code base is completely foreign to me, so it broke eventually.
So your best bet would probably to start in the Source Docs for the component and work your way from there to understanding how this is implemented for dev tools now.
Once you have done that you'll then have to adjust the OpenWPMStackDumpChild
and likely also the OpenWPMStackDumpParent
in Extension/bundled/privileged/stackDump.
Quick searching also lead me to the following files:
- https://searchfox.org/mozilla-central/source/devtools/server/actors/resources/network-events-stacktraces.js
- https://searchfox.org/mozilla-central/source/devtools/server/actors/resources/network-events.js
- https://searchfox.org/mozilla-central/source/devtools/server/actors/resources/network-events-content.js
- https://firefox-source-docs.mozilla.org/devtools/backend/actor-hierarchy.html