Reviewers: Sven Panne, Michael Starzinger, ulan,

Message:
PTAL

Description:
Replace OS::Ticks() with Stopwatch utility class.

OS::Ticks() was used to measure elapsed time in microseconds, which
is now properly encapsulated in the Stopwatch class. Stopwatch uses
a monotonic clock if available, falling back to the realtime clock
if no monotonic timer is available.

This also fixes the issue on Windows where timeGetTime() was used
to implement OS::Ticks(), which overflows every 49 days.

Please review this at https://codereview.chromium.org/23183003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/compiler.h
  M src/compiler.cc
  M src/counters.h
  M src/counters.cc
  M src/deoptimizer.cc
  M src/log.h
  M src/log.cc
  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/utils/stopwatch-macos.cc
  A src/utils/stopwatch-posix.cc
  A src/utils/stopwatch-win32.cc
  A src/utils/stopwatch.h
  M test/cctest/test-cpu-profiler.cc
  M tools/gyp/v8.gyp


--
--
v8-dev mailing list
v8-dev@googlegroups.com
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 v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to