Commit Graph

29 Commits

Author SHA1 Message Date
Gabriele Svelto
a81746a966 Bug 906754 - Ensure that TimeStamp's static fields are initialized only once. r=froydnj 2013-10-28 20:50:09 +01:00
Benjamin Smedberg
640d851717 Bug 927944 part B - move AutoCriticalSection to nsWindowsHelpers.h and use it instead of manual lock handling in nsWindowsDllBlocklist.cpp, r=ehsan
--HG--
extra : rebase_source : 54e55b729263bffbb5a92c3336eacf248e99a659
2013-10-18 14:24:51 -04:00
Gabriele Svelto
f886fc6f10 Bug 852250 - When restarting recompute the process startup timestamp instead of using the timestamp stored it in MOZ_APP_RESTART during the shutdown procedure. r=nfroyd 2013-07-31 12:51:58 +02:00
Jacek Caban
da51d3e1c3 Bug 879703 - Make TimeStampValue(_SomethingVeryRandomHere*) inline. r=tbsaunde 2013-06-06 12:59:18 +02:00
Trevor Saunders
006c47c49f bug 876515 - make the default constructor for TimeStamp{,Value} constexpr r=froydnj
I had to remove the assert in the windows TimeStampValue::TimeStampValue() so
it could be constexpr.  another option would be to make the constructors being
constexpr conditional on DEBUG, but that requires a couple ifdefs, and it just
seems simpler to make that constructor private and assume TimeStamp code itself
won't be so dumb as to pass that constructor a meaningful value expecting
something to be done with it.
2013-05-27 17:27:06 -04:00
Gabriele Svelto
871c2afe3b Bug 793735 - Add functionality to create TimeStamp instances representing the process creation time, r=nfroyd 2013-03-28 11:28:09 +01:00
Honza Bambas
9c22b26ae2 Bug 836869 - Make QueryPerformanceCounter bad leap detection heuristic smarter, r=tellrob, sr=benjamin 2013-05-01 18:57:58 +02:00
Nathan Froyd
0f42f822c1 Backout 61e1edc0b6bf (bug 793735), 77014412cd4a (bug 793735), and 8c5aa269c3cd (bug 793735) for botching FHR data 2013-04-09 16:25:42 -04:00
Gabriele Svelto
1fcd998ace Bug 793735 - Add functionality to create TimeStamp instances representing the process creation time, r=froydnj 2013-03-28 11:28:09 +01:00
Jeff Walden
5ec763f216 Bug 847480 - Blindly convert all existing mozilla::Abs users to mozilla::DeprecatedAbs. Individualized conversions to the reformed mozilla::Abs will continue until mozilla::DeprecatedAbs is unused, at which point it will be removed. r=Ms2ger 2013-03-05 15:43:30 -08:00
Jeff Walden
1871e9f3f8 Bug 835542 - Implement mozilla::Abs. r=Ms2ger
--HG--
extra : rebase_source : a3e62ff76365d27cc4cb10e4fee942ddb8b10b79
2013-02-15 19:55:36 -08:00
Jacek Caban
a8c1ef95ef Bug 822490 - Include cstdlib for std::abs (GCC fixup) 2013-02-13 13:33:57 +01:00
Honza Bambas
3e6e5d6690 Bug 827287 - make it possible to use TimeStamp without performance concerns (TimeStamp::NowLoRes), r=ehsan, sr=roc 2013-02-11 22:56:59 +01:00
Honza Bambas
a3e10fe7fa Bug 822490 - Radically simplify windows TimeStamp implementation, r=tellrob 2013-02-11 22:56:58 +01:00
Trevor Saunders
0f94b545d6 bug 829288 - fix a bunch of mingw warnings in xpcom/ r=ehsan 2013-01-10 03:39:40 -05:00
Honza Bambas
50b95c94b2 Bug 765215 - Firefox 13 hangs on resuming from sleep, introduced wake up adjust for QueryPerformanceCounter, r=ehsan 2012-12-22 15:46:14 +01:00
Nathan Froyd
4c61ef9ec5 Bug 806618 - rewrite PR_NewLogModule calls to not generate static initializers; r=ehsan 2012-10-29 19:32:10 -04:00
Ehsan Akhgari
5d66d79077 Bug 784859 - Part 6: Remove the need for locking in all calls to TimeStamp::Now; r=bbondy 2012-09-08 14:13:17 -04:00
Ehsan Akhgari
2aed23cb92 Bug 784859 - Part 5: Change the implementation of GetTickCount64Fallback so that it never locks; r=bbondy 2012-09-06 11:01:06 -04:00
Ehsan Akhgari
742f5dc623 Bug 784859 - Part 4: Use the native GetTickCount64 function where available; r=bbondy 2012-09-08 14:12:34 -04:00
Ehsan Akhgari
606e7a703a Bug 784859 - Part 3: Refactor TickCount64 to make its signature similar to GetTickCount64; r=bbondy 2012-09-08 14:12:14 -04:00
Ehsan Akhgari
c373a3df5a Bug 784859 - Part 2: Avoid locking to store the computed result in the global variable in CalibratedPerformanceCounter; r=bbondy 2012-09-06 11:01:06 -04:00
Ehsan Akhgari
cdd36264b3 Bug 784859 - Part 1: Use QueryPerformanceCounter directly if the machine has a stable TSC; r=bbondy 2012-09-06 11:01:06 -04:00
Joe Olivas
c13236b798 Bug 786789 - Optimize TimeDuration::ToSeconds on Windows to avoid blocked store forwards; r=ehsan 2012-08-29 21:09:01 -04:00
Ehsan Akhgari
e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Honza Bambas
e09bec0c14 Bug 676349 - Implement high-resolution platform timers for the Windows platform, r=robarnold 2011-12-09 00:14:42 +01:00
Ed Morley
fc379bcc47 Backout 9a59028a3510 (bug 676349) on suspicion of breaking Win PGO builds 2011-12-07 02:22:09 +00:00
Honza Bambas
4e68ed8180 Bug 676349 - Implement high-resolution platform timers for the Windows platform, r=robarnold 2011-12-06 12:16:16 +01:00