Reviewers: Sven Panne, Jakob, Yang,
Message:
The initial part of the time related cleanup I mentioned. All required bits
for
the CPU profiling are included. Additional cleanup delayed for followup CLs.
PTAL
Description:
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).
Please review this at https://codereview.chromium.org/23295034/
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-nullos.cc
M src/platform-openbsd.cc
M src/platform-posix.cc
M src/platform-win32.cc
M src/platform.h
M src/profile-generator.h
M src/profile-generator.cc
A src/time/elapsed-timer.h
A src/time/time.h
A src/time/time.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.