Commit Graph

66 Commits

Author SHA1 Message Date
Boris Zbarsky
653d239045 Bug 1224596 part 5. Switch nsPerformance to using the new WorkerMainThreadRunnable::Dispatch signature. r=khuey 2015-11-24 00:04:20 -05:00
Andrea Marchesini
5855a7439f Bug 1226147 - WorkerPrivate->CreationTime() and CreationTimeStamp(), r=bz 2015-11-19 20:32:49 +00:00
Andrea Marchesini
5e1f614532 Bug 1169068 - Performance.translateTime(), r=bz 2015-11-19 14:04:47 +00:00
Kyle Huey
bdbb2ec50a Bug 1224061: Make Event::InitEvent infallible. r=smaug 2015-11-13 08:09:42 +08:00
Nate Hughes ext:(%2C%20Valentin%20Gosu%20%3Cvalentin.gosu%40gmail.com%3E)
7e19134192 Bug 1154309 - Add New Resource Timing Fields r=bz,hurley 2015-07-24 08:49:25 -07:00
Nathan Froyd
01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Ting-Yu Chou
2b85c7b794 Bug 1209865 - Add gecko profiler marker when mark() of User Timing API is called. r=baku
--HG--
extra : rebase_source : 7dffbb685cae7a4d94fcba18ba15766b7a602451
2015-09-30 16:53:37 +08:00
Hiroyuki Ikezoe
1aeed79e07 Bug 1197003 - Part 2 - Implement processing algorithm for PerformanceObserver to notify a batch of entries. r=baku 2015-09-02 23:41:00 +02:00
Hiroyuki Ikezoe
07f62b2d0a Bug 1165796 - Part 2: Implement PerformanceObserver.r=baku
--HG--
extra : rebase_source : 9ccd3f9c8932841aed6a13986a4466fac0197902
2015-08-17 15:13:20 -07:00
Hiroyuki Ikezoe
4a6195ea43 Bug 1165796 - Part 1: Make PrefEnabledRunnable usable for other preference names. r=baku
--HG--
extra : rebase_source : e765b0ffea0ac3668c0d839fae488e49e5341ef7
2015-08-17 15:13:13 -07:00
Aryeh Gregor
5aeef0231d Bug 874842 - Return Event instead of nsIDOMEvent 2015-08-12 14:39:31 +03:00
Kyle Machulis
6ed5a2c6c8 Bug 1192787 - Readd performance enabled test to ResponseEndHighRes; r=baku 2015-08-11 08:54:52 -07:00
Russ Nicoletti
80a2a30f8a Bug 1177226 - Support User Timing API events in the Developer HUD. r=ehsan, r=jryans
--HG--
extra : rebase_source : 5a084f34f7550ec78c5337fb1808f7e03e7d0687
2015-07-31 15:40:08 -07:00
Francisco Jordano
4008b170ad Bug 1186880 - Performance timing api in workers should output entries if preference is enabled. r=baku 2015-07-28 17:33:37 +01:00
Boris Zbarsky
829fdf0599 Bug 1186489. Apply the performance.now() resolution clamping in workers as well. r=froydnj 2015-07-22 13:22:16 -04:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Boris Zbarsky
e94b7b7715 Bug 1167489 and bug 1153672. Clamp the resolution of performance.now() calls to 5us, because otherwise we allow various timing attacks that depend on high accuracy timers. r=froydnj 2015-07-07 17:37:50 -04:00
Andrea Marchesini
6a2a4a1aa9 Bug 1155761 - User Timing API in Workers, r=ehsan 2015-05-25 17:53:07 +01:00
Hiroyuki Ikezoe
130bd87ffb Bug 1158731 - Buffer for Performance APIs (Resource Timing, User Timing) should be separeted. r=baku 2015-05-08 01:00:00 +02:00
Andrew McCreight
9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Ehsan Akhgari
77fa04c499 Bug 1158442 - Remove the "Performance Entry buffer size maximum reached" warning; r=baku
This happens far too often in our tests.  For example, in our
mochitest-3 debug mac test, we hit this warning 4,472 times.

At this point, this warning is only adding unneeded noise, slowing down
the tests and increasing the size of the logs unnecessarily.  Let's
remove it.
2015-04-27 13:08:27 -04:00
Valentin Gosu
61d0725d6d Bug 1139831 - end timestamps are before start timestamps. r=baku
--HG--
extra : rebase_source : d36cca3ac5c193427f1da3df2ec4e5f195a25ab2
2015-04-16 03:53:44 +03:00
Steve Fink
fe6e5487f0 Bug 1125412 - Add a pref-gated performance.mozMemory for accessing internal memory usage/threshold info, r=smaug, sr=smaug
--HG--
extra : rebase_source : a5a6a365cadd01e94831c09d50d6a24b05c35982
2015-03-23 12:19:52 -07:00
Boris Zbarsky
dc24477d79 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Valentin Gosu
549c338e35 Bug 1123920 - ConnectStart and ConnectEnd should call DomainLookupEndHighRes if null r=ehsan 2015-02-25 20:23:46 +02:00
Nicholas Nethercote
242708cf72 Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Kyle Machulis
886508ba5d Bug 1115130 - Add logging for User Timing API; r=baku 2015-02-06 16:00:51 -08:00
Andrew McCreight
d3826daa16 Back out Bug 1127201 (part 2) for various problems. 2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8 Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Ryan VanderMeulen
1369b8b342 Backed out changeset 39f991c2bd71 (bug 1115130) for Werror bustage.
CLOSED TREE
2015-02-05 14:36:25 -05:00
Kyle Machulis
1f68deb5e7 Bug 1115130 - Add logging for User Timing API; r=baku 2015-02-05 11:02:53 -08:00
Kyle Machulis
de83978693 Bug 782751 - User Timing API Implementation; r=baku 2015-02-03 21:46:23 -08:00
Ryan VanderMeulen
455452e433 Backed out 4 changesets (bug 782751, bug 1127948) for Gaia UI test failures.
Backed out changeset 4d8735e0cc30 (bug 1127948)
Backed out changeset de498dd4e303 (bug 782751)
Backed out changeset fe9436f5474c (bug 782751)
Backed out changeset fff8f6c32743 (bug 782751)
2015-01-30 14:16:40 -05:00
Kyle Machulis
ae8ab23c5c Bug 782751 - User Timing API Implementation; r=baku 2015-01-30 09:29:36 -08:00
Phil Ringnalda
bc4488b3ef Backed out 3 changesets (bug 782751) for various timing failures
Backed out changeset 14594507ec55 (bug 782751)
Backed out changeset e8659e5122e1 (bug 782751)
Backed out changeset c47168517080 (bug 782751)
2015-01-29 22:30:26 -08:00
Kyle Machulis
97099e2d9e Bug 782751 - User Timing API Implementation; r=baku
--HG--
extra : rebase_source : dfd5ab7e34913d50c892aad1efd3dae2aa9c46b7
2015-01-29 18:04:27 -08:00
Valentin Gosu
601b80dfaf Bug 1099092 - Navigation Timing has incorrect values when page is load via link with target=_blank attribute r=bz 2015-01-09 16:36:00 +02:00
Valentin Gosu
79c0bcd432 Bug 1064706 - Save timing info in nsPerformanceTiming to avoid keeping a ref to the channel r=bz 2014-10-21 15:49:40 +03:00
Peter Van der Beken
dcda2ba9bb Bug 1078744 - Replace SetIsDOMBinding with SetIsNonDOMBinding, remove nsWrapperCache::SetIsDOMBinding. r=bz.
--HG--
extra : rebase_source : 89c476cd9436530b2df5acc903909e34188417a0
2014-10-07 11:44:49 +02:00
Valentin Gosu
b660cd35ec Bug 1071527 - "dom.performance.enabled" set to "false" shows non-zero values for attributes. r=bz 2014-09-23 23:18:28 +03:00
Valentin Gosu
96eb6b1308 Bug 936814 - Part 1: Implement the _timing allow check algorithm_ for cross-origin Resource Timing r=bz,honzab 2014-05-15 08:26:07 +03:00
Valentin Gosu
b7db64f8c7 Bug 936813 - Implement onresourcetimingbufferfull callback (part 2) r=bz 2014-05-10 05:12:06 +03:00
Valentin Gosu
392bd58d88 Bug 936813 - Enforce buffer size for resource timing (part 1) r=bz 2014-05-10 05:11:54 +03:00
Birunthan Mohanathas
a85cd37de4 Bug 1001966 - Part 2: Change uses of numbered NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE macro to the variadic variant. r=smaug 2014-04-29 04:57:00 -04:00
Valentin Gosu
bd28245b1f Bug 822480 - Fix e10s bits of Resource Timing implementation. r=bz, r=honzab
* Move nsITimedChannel to HttpBaseChannel which is inherited by HttpChannelChild
* Return mZeroTime instead of 0 in nsPerformanceTiming
* Pass redirect count from parent to child channel
2014-04-21 09:34:33 -04:00
Adrian Lungu
864ffca9e7 Bug 822480 - Add in the Resource Timing API. r=honzab, r=jst 2013-10-15 18:35:44 -07:00
Boris Zbarsky
79dab91ff6 Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
This patch was mostly generated with the following command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""

and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
d4bd64ee2c Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:

find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""

plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Gabriele Svelto
91c1a25d52 Bug 907798 - Remove TimeStamp.h includes from source files that do not need it; r=ehsan 2013-08-24 08:12:51 +02:00
Ms2ger
47f9af7214 Revert this CLOSED TREE to changeset 4d3e221584a0. 2013-08-24 13:31:48 +02:00