diff options
| author | Igor Minar | 2010-08-16 10:56:03 -0700 |
|---|---|---|
| committer | Igor Minar | 2010-08-16 10:56:03 -0700 |
| commit | 59401b80ee36d56f7ede551669633abbc6dd1e24 (patch) | |
| tree | 113669e99faae192d0bb89adc4f74db6f22fefd0 /perf/blank.html | |
| parent | 9899959d695a97ddbb3e9a626a769efa714bffe7 (diff) | |
| parent | f09415d0de5d383efc9e2cb35d1323a5aac2371d (diff) | |
| download | angular.js-59401b80ee36d56f7ede551669633abbc6dd1e24.tar.bz2 | |
Merge remote branch 'upstream/master'
Diffstat (limited to 'perf/blank.html')
| -rw-r--r-- | perf/blank.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/perf/blank.html b/perf/blank.html new file mode 100644 index 00000000..f38c368b --- /dev/null +++ b/perf/blank.html @@ -0,0 +1,33 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <script type="text/javascript"> + function time(timerName){ + var started = new Date().getTime(); + return { + name: timerName, + started: started, + lastLap: {duration:0, name:'BEGIN'}, + lap: function(lapName){ + var duration = (this.lapped = new Date().getTime()) - this.started; + var lastName = this.lastLap.name; + this.lastLap = {duration:duration-this.lastLap.duration, name:lapName}; + console.log(timerName, lapName, 'TOTAL: ' + duration + ' ms.', 'since ' + lastName + ': ' + this.lastLap.duration + ' ms.'); + return duration; + } + }; + } + window.browser = time('BROWSER'); + </script> + <script type="text/javascript" src="../angular-minified.js" ng:autobind ng:css="css/angular.css"></script> + <script type="text/javascript"> + window.browser.lap('parse'); + + </script> + </head> + <body ng:init="$window.$scope = this; $window.browser.lap('ready')" style="display:none;" ng:show="true"> + <a href="startup.html">reload</a> + <hr/> + READY + </body> + </html> |
