diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-09-10 10:12:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-09-10 10:12:29 -0700 |
commit | 1a66b2dffdb1e2c84a738ed29047d6e907703efb (patch) | |
tree | f82dd46d1f44b868824923119c1b11ae925a6760 /tools | |
parent | 1896c00715d1cbfd47a295c9564691dcf88d6032 (diff) |
save Date.now and performance.now in reproduceriter
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/reproduceriter.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/reproduceriter.py b/tools/reproduceriter.py index 3402192c..e61df744 100755 --- a/tools/reproduceriter.py +++ b/tools/reproduceriter.py @@ -155,16 +155,16 @@ var Recorder = (function() { }; // Date.now, performance.now recorder.dnows = []; - var dnow = Date.now; + recorder.dnow = Date.now; Date.now = function() { - var ret = dnow(); + var ret = recorder.dnow(); recorder.dnows.push(ret); return ret; }; recorder.pnows = []; - var pnow = performance.now; + recorder.pnow = performance.now; performance.now = function() { - var ret = pnow(); + var ret = recorder.pnow(); recorder.pnows.push(ret); return ret; }; |