Reviewers: Yury Semikhatsky,
Message:
PTAL
Description:
Reland^2 "Add Chromium-style TimeDelta, Time and TimeTicks classes, and a
new
ElapsedTimer class."
These classes are meant to replace OS::Ticks() and OS::TimeCurrentMillis(),
which are broken in several ways. The ElapsedTimer class implements a
stopwatch using TimeTicks::HighResNow() for high resolution, monotonic
timing.
Also fix the CpuProfile::GetStartTime() and CpuProfile::GetEndTime()
methods to actually return the time relative to the unix epoch as stated
in the documentation (previously that was relative to some arbitrary
point in time, i.e. boot time).
The previous Windows issues have been resolved, and we now use
GetTickCount64()
on Windows Vista and later, falling back to timeGetTime() with rollover
protection for earlier Windows versions.
BUG=v8:2853
Please review this at https://codereview.chromium.org/23490015/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/api.cc
M src/compiler.h
M src/compiler.cc
M src/counters.h
M src/counters.cc
M src/cpu-profiler.h
M src/cpu-profiler.cc
M src/deoptimizer.cc
M src/hydrogen.h
M src/hydrogen.cc
M src/lithium-allocator.cc
M src/log.h
M src/log.cc
M src/optimizing-compiler-thread.h
M src/optimizing-compiler-thread.cc
M src/parser.cc
M src/platform-linux.cc
M src/platform-macos.cc
M src/platform-openbsd.cc
M src/platform-posix.cc
M src/platform-win32.cc
M src/platform.h
A src/platform/elapsed-timer.h
A src/platform/time.h
A src/platform/time.cc
M src/profile-generator.h
M src/profile-generator.cc
M src/win32-headers.h
M src/win32-math.cc
M test/cctest/cctest.gyp
M test/cctest/test-cpu-profiler.cc
A test/cctest/test-time.cc
M tools/gyp/v8.gyp
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.