Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFirefox timeline integration #4957 #5636
Conversation
highfive
commented
Apr 10, 2015
hoppipolla-critic-bot
commented
Apr 10, 2015
|
Critic review: https://critic.hoppipolla.co.uk/r/4632 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
This is awesome! |
|
This is close! Most of the comments I left on Critic are just improvements for style and clarity! |
|
@pcwalton thanks) I found two bugs in current implementation:
|
|
The Servo panic comes from write_json_packet not dealing with connection errors. The Firefox hang is really interesting! It looks like we should be returning values in milliseconds, and we're currently providing nanoseconds (http://mxr.mozilla.org/mozilla-central/source/browser/devtools/shared/timeline/marker-details.js#119). Maybe that will help? |
|
Actually, that's not entirely true - it looks like we want to calculate a high resolution timestamp like https://developer.mozilla.org/en-US/docs/Web/API/Performance/now with fractional milliseconds. |
|
@jdm, yes, it looks like you described. Could you create separated task on it, please? Also about https://critic.hoppipolla.co.uk/showcomment?chain=11699 - I use |
|
Yes, we can use separate issue for the timestamps. |
|
Go ahead and squash these together! |
|
@jdm done |
|
@bors-servo: r+ |
|
|
Available markers only: Reflow DOMEvent Also need to implement: Style marker Paint marker Javascript marker frames reply, depends on getting javascript stack I decided to make pull request before implemented another markers for getting feedback. mb it would be better to create separated tasks. Notices: Marker doesn't fill stack and stackEnd MemoryActor sends fake data because there is no memory profiler per tab FramerateActor sends empty Vec, need implement http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#5240
|
@JIoJIaJIu: look like this cause a "warning: method is never used: |
|
@Ms2ger Here it should be called once as a callback of RequestAnimationFrame and then it works recursively. |
JIoJIaJIu commentedApr 10, 2015
Available markers only:
Reflow
DOMEvent
Also need to implement:
Style marker
Paint marker
Javascript marker
frames reply, depends on getting javascript stack
I decided to make pull request before implemented another markers for getting feedback.
mb it would be better to create separated tasks.
Notices:
Marker doesn't fill stack and stackEnd
MemoryActor sends fake data because there is no memory profiler per tab
FramerateActor sends empty Vec, need implement http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#5240