Repository navigation
Open
Labels
Description
Useful investigative tips:
- enable
devtools.debugger.loganddevtools.debugger.log.verbosein Firefox - add
dumpv(JSON.stringify(aPacket));toonPacketindbg-client.jsm - enable remote and chrome debugging
- open the browser toolbox and use the logging from stdout to help guide the messages that actors need to send and process
- http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/timeline.js
- http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/memory.js
- http://mxr.mozilla.org/mozilla-central/source/toolkit/devtools/server/actors/framerate.js
- http://mxr.mozilla.org/mozilla-central/source/browser/devtools/timeline/timeline.js
- http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsDocShell.cpp#2947 (PopProfileTimelineMarkers)
- Create a TimelineActor actor
- Process the
start,stop, andisRecordingmessages - Send
markersmessages at regular intervals that categorize periods of time (Styles,DOMEvent,Reflow, etc.) - Send
framesmessages at regular intervals that provide stack frames for markers - Send
memorymessages at regular intervals - Send
frameratemessages at regular intervals
Activity
jdm commentedon Feb 18, 2015
Sample messages:
jdm commentedon Feb 18, 2015
gurobokum commentedon Mar 15, 2015
I'll take it
jdm commentedon Mar 15, 2015
That would be really great! I'll help in any way I can :)
metajack commentedon Mar 19, 2015
@JIoJIaJIu How's this going so far?
gurobokum commentedon Mar 20, 2015
@metajack Im working on it)
Firefox timeline integration servo#4957
gurobokum commentedon Mar 29, 2015
should i export http://mxr.mozilla.org/mozilla-central/source/js/src/jsapi.cpp#5914 in rust-mozjs?
jdm commentedon Mar 29, 2015
Our version of SpiderMonkey in mozjs doesn't include that function, and I suspect that trying to import it will require lots of experimentation and changes. I recommend just adding a TODO for saving stacks in your code as necessary and we can look into it separately.
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
gurobokum commentedon Mar 31, 2015
@jdm Is there some analog of nsIMemoryReporterManager for MemoryActor?
jdm commentedon Mar 31, 2015
The manager is a separate thread; if you have a ProfilerChan value, you can send messages to it - http://mxr.mozilla.org/servo/source/components/profile/mem.rs .
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957
Firefox timeline integration servo#4957