Use Folly's VDSO wrapper
commit248fce09b5474dd65a4a4f9ad8f004bfb8209b13
authorChristopher Dykes <cdykes@fb.com>
Wed, 22 Mar 2017 18:42:02 +0000 (22 11:42 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 22 Mar 2017 19:05:53 +0000 (22 12:05 -0700)
treeabe5b8fd6104b321ae03dc69bd57807b11c2a7af
parent86e2224e6ed176f85f367bf4c0a7655cae7014f7
Use Folly's VDSO wrapper

Summary:
Because it falls back to an implementation that works on all platforms that HHVM supports.
This also allows the logic in a few other places to be simplified due to the fact that Folly's portability headers implement `clock_gettime` for OSX, including thread cpu time.

Reviewed By: bmaurer

Differential Revision: D3903554

fbshipit-source-id: 84140a0e14ca75f66b23949f88da2f1f30c5a732
hphp/runtime/ext/hotprofiler/ext_hotprofiler.cpp
hphp/runtime/ext/xhprof/ext_xhprof.cpp
hphp/util/timer.cpp
hphp/util/vdso.cpp [copied from hphp/util/vdso.h with 58% similarity]
hphp/util/vdso.h