Bug 999121 - Avoid mFramesMarkedForDisplay relloc with SetCapacity. r=mwoodrow

--HG--
extra : rebase_source : dd3d1b9cd756dcbb9c014d9d5472c794057b4073
Bug 867728 - Stream profiler JSON directly to a file. r=bgirard,terrence

--HG--
extra : rebase_source : 3472eb981d0c8778be318b3d51b51edfe8c1c96a
Bug 867728 - Add tests for JSStreamWriter. r=bgirard

--HG--
extra : rebase_source : ee679794165b171ec89dfc2785647ffa7cb7f009