Improved timing information for Firefox IPC message profiling now available

2020-08-06 Thread Jim Porter
Recently, I landed some improvements to IPC profiling support for Firefox: we're now able to collect timings for each "phase" of an IPC message as it travels from the sender to its recipient. Now, rather than just recording the start and end time, we also record when we begin/end sending bytes on t

Firefox Profiler now supports recording IPC messages

2019-10-30 Thread Jim Porter
Recently, we landed a new feature for the Firefox Profiler: the ability to record IPC messages for monitored threads. This should be useful for evaluating IPC-related performance issues as we make progress on Project Fission. To enable this feature, just check the "IPC Messages" feature in the

Re: How are events passed between chrome and content?

2017-06-16 Thread Jim Porter
On 6/16/17 6:18 AM, smaug wrote: > On 06/16/2017 02:32 AM, Jim Porter wrote: >> Here's the code I'm currently using to generate a contextmenu event: >> <https://github.com/jimporter/gesticulate/blob/e10s/src/chrome/modules/mouseGestures.jsm#L214-L216>. >> &g

Re: How are events passed between chrome and content?

2017-06-15 Thread Jim Porter
On 6/15/17 4:12 PM, Kartikaya Gupta wrote: > Not quite. For e10s, mouse events are sent across the process boundary > using the PBrowser ipdl protocol. On the parent side they go into > EventStateManager::DispatchCrossProcessEvent [1] which picks up the > TabParent and sends it over IPC to the TabC

How are events passed between chrome and content?

2017-06-15 Thread Jim Porter
>From what I can tell, if I click inside a webpage, the event starts out in chrome and then propagates down into content. I assume there's some sort of magic happening in the message manager that pushes the event across process boundaries. However, I can't figure out how to create my own event in c

Re: Nuwa on desktop

2015-04-07 Thread Jim Porter
On 04/07/2015 06:06 PM, Robert O'Callahan wrote: > On Wed, Apr 8, 2015 at 8:00 AM, wrote: >> Not sure do what degree we can replicate on Windows what we do on >> FFOS to launch content processes. > > The Cygwin people have looked into fork() in Windows a bit. Some > links: > http://www.cygwin.

Re: Is anyone still using JS strict warnings?

2014-12-19 Thread Jim Porter
On 12/19/2014 02:19 PM, Jason Orendorff wrote: > So if you go to about:config and set the javascript.options.strict pref, > you'll get warnings about accessing undefined properties. > > Please speak up now, if you're still using it! I find these warnings quite useful (granted, I'm the sort of per

Re: Deprecating localstore.rdf

2014-07-27 Thread Jim Porter
On 07/23/2014 07:10 AM, rviti...@mozilla.com wrote: > Are there any objections or remarks to the deprecation of > localstore.rdf? Just to be proactive, is there anything that other applications (read: Thunderbird) will need to do about this, or will it just automatically work? - Jim _

Re: Proposal for adding named arguments to C++

2014-06-20 Thread Jim Porter
On 06/15/2014 05:04 AM, Botond Ballo wrote: > I would love to get more people at Mozilla involved in C++ > standardization / get more organized about it. > > I also have a standing offer to assist anyone at Mozilla who would > like to write a standards proposal do so, and present the proposal > at

Re: Proposal for adding named arguments to C++

2014-06-14 Thread Jim Porter
On 06/14/2014 01:07 PM, Botond Ballo wrote: > Ehsan and I would like to propose named arguments as a new feature for C++. A bit off-topic, but do we at Mozilla have any kind of a (semi-) organized group of folks involved with C++ standardization? I follow along fairly closely (especially in SG7 -

Re: Adding a recommendation that one-argument constructors be explicit to the C++ style guide

2014-05-12 Thread Jim Porter
On 05/12/2014 03:07 PM, Boris Zbarsky wrote: So I'd like to propose that our C++ style require one-arg constructors to be marked explicit unless there's a clear comment explaining why the constructor is implicit. I agree 100%, especially when we're talking about things that aren't value types

Re: Mozilla style guide issues, from a JS point of view

2014-01-07 Thread Jim Porter
On 01/06/2014 08:23 PM, Karl Tomlinson wrote: Yes, those are the sensible options. Wrapping at > 80 columns just makes things worse for those that like to save some screen room for something else, view code on a mobile device, etc. I for one prefer wrapping at 80 columns because with my font s

Re: interest in having Mozilla officially represented at the C++ Standards Committee?

2013-10-10 Thread Jim Porter
On 10/10/2013 11:22 AM, Botond Ballo wrote: Is there any interest in having Mozilla be officially represented at the C++ Standards Committee? I actually asked about this a couple months ago (with the goal of being one of the representatives). I'm glad to see there's some more traction on this

Re: What platform features can we kill?

2013-10-09 Thread Jim Porter
On 10/09/2013 12:37 PM, Chris Peterson wrote: On 10/9/13 9:49 AM, Benjamin Smedberg wrote: In the spirit of learning from this, what's next on the chopping block? RDF I'm all for this, although the risk is probably quite small because we don't expose RDF to content. Bug 833098 - Kick RDF ou

Re: Easiest way to start using httpd.js?

2012-10-22 Thread Jim Porter
On 10/21/2012 11:53 AM, Ted Mielczarek wrote: There's also a bug on file[3] (with a WIP patch) on making ssltunnel+httpd.js usable from xpcshell tests, which might fit your usecase slightly better. This looks like exactly what I need. I can probably wait until this gets checked in. - Jim ___

Re: Easiest way to start using httpd.js?

2012-10-20 Thread Jim Porter
On 10/17/2012 06:27 PM, Gregory Szorc wrote: Let me know if you have any questions. I have a followup question: is there an easy way to use https with httpd.js? ActiveSync Autodiscovery requires https. (I don't absolutely need to test Autodiscovery though, so if I can't do this, it's not the

Easiest way to start using httpd.js?

2012-10-17 Thread Jim Porter
I'm looking to write a fake server for the ActiveSync protocol, which I will eventually incorporate into xpcshell tests. httpd.js seems like the best tool for the job here. However, since the server is fairly complex, I wanted to be able to use XHRs in Firefox to talk to the server just to tes