Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ember version updated from 2.10 to 3.8 #136

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ember/assets/js-repaint-perfs-ember.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ table {border-collapse:collapse;border-spacing:0;}

.Query {position:relative;}
.Query:hover .popover {display:block;left:-100%;width:100%;}
div#stats { z-index: 2; }
#stats {z-index: 2;}

346 changes: 41 additions & 305 deletions ember/assets/js-repaint-perfs-ember.js

Large diffs are not rendered by default.

Empty file added ember/assets/vendor.css
Empty file.
3,949 changes: 3,924 additions & 25 deletions ember/assets/vendor.js

Large diffs are not rendered by default.

35 changes: 15 additions & 20 deletions ember/index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>JsRepaintPerfsEmber</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">


<meta name="js-repaint-perfs-ember/config/environment" content="%7B%22modulePrefix%22%3A%22js-repaint-perfs-ember%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2Fjs-repaint-perfs%2Fember%2F%22%2C%22locationType%22%3A%22auto%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Afalse%7D%2C%22APP%22%3A%7B%22name%22%3A%22js-repaint-perfs-ember%22%2C%22version%22%3A%220.0.0%2B51ca228b%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />

<meta name="js-repaint-perfs-ember/config/environment"
content="%7B%22modulePrefix%22%3A%22js-repaint-perfs-ember%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22/js-repaint-perfs/ember/%22%2C%22locationType%22%3A%22auto%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22js-repaint-perfs-ember%22%2C%22version%22%3A%220.0.0+b36a2a3a%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D"/>
<link integrity="" rel="stylesheet" href="/js-repaint-perfs/ember/assets/js-repaint-perfs-ember.css">

<link rel="stylesheet" href="/js-repaint-perfs/ember/assets/js-repaint-perfs-ember.css">

</head>
<body>


</head>
<!--
Version of Ember: 2.10
Version of Jquery: 3.1.1
<script src="/js-repaint-perfs/ember/lib/ENV.js"></script>
<script src="/js-repaint-perfs/ember/assets/vendor.js"></script>
<script src="/js-repaint-perfs/ember/assets/js-repaint-perfs-ember.js"></script>
<script src="/js-repaint-perfs/ember/lib/memory-stats.js"></script>
<script src="/js-repaint-perfs/ember/lib/monitor.js"></script>

vendor.js and js-repaint-perfs-ember.js was generated by Ember CLI
Repository for source code: https://github.com/chilicoder/js-repaint-perfs-ember
-->
<body>
<script src="/js-repaint-perfs/ember/assets/vendor.js"></script>
<script src="/js-repaint-perfs/ember/lib/ENV.js"></script>
<script src="/js-repaint-perfs/ember/assets/js-repaint-perfs-ember.js"></script>
<script src="../lib/memory-stats.js"></script>
<script src="../lib/monitor.js"></script>
<script src="../ga.js"></script>

</body>

</body>
</html>
254 changes: 22 additions & 232 deletions ember/lib/ENV.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions ember/lib/memory-stats.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var MemoryStats=function(){var e=100,t=0,a=document.createElement("div")
a.id="stats",a.style.cssText="width:80px;opacity:0.9;cursor:pointer"
var o=document.createElement("div")
o.id="ms",o.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;",a.appendChild(o)
var r=document.createElement("div")
r.id="msText",r.style.cssText="color:#0f0;font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px",r.innerHTML="Memory",o.appendChild(r)
var n=document.createElement("div")
for(n.id="msGraph",n.style.cssText="position:relative;width:74px;height:30px;background-color:#0f0",o.appendChild(n);n.children.length<74;){var i=document.createElement("span")
i.style.cssText="width:1px;height:30px;float:left;background-color:#131",n.appendChild(i)}var d=window.performance||{}
d||d.memory||(d.memory={usedJSHeapSize:0}),d&&!d.memory&&(d.memory={usedJSHeapSize:0}),0===d.memory.totalJSHeapSize&&console.warn("totalJSHeapSize === 0... performance.memory is only available in Chrome .")
var l=Date.now(),m=d.memory.usedJSHeapSize
return{domElement:a,update:function(){if(!(Date.now()-l<1e3/30)){l=Date.now()
var a=d.memory.usedJSHeapSize-m
m=d.memory.usedJSHeapSize
var o=a<0?"#830":"#131",i=d.memory.usedJSHeapSize
e=Math.min(e,i),t=Math.max(t,i),r.textContent="Mem: "+function(e,t){if(0==e)return"n/a"
t=void 0!==t?t:0
var a=Math.pow(10,t),o=Math.floor(Math.log(e)/Math.log(1024))
return Math.round(e*a/Math.pow(1024,o))/a+" "+["Bytes","KB","MB","GB","TB"][o]}(i,2)
var s=i/31457280,p=Math.min(30,30-30*s);(function(e,t,a){var o=e.appendChild(e.firstChild)
o.style.height=t+"px",a&&(o.style.backgroundColor=a)})(n,p,o)}}}}
14 changes: 14 additions & 0 deletions ember/lib/monitor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var Monitoring=Monitoring||function(){var e=new MemoryStats
e.domElement.style.position="fixed",e.domElement.style.right="0px",e.domElement.style.bottom="0px",document.body.appendChild(e.domElement),requestAnimationFrame(function t(){e.update(),requestAnimationFrame(t)})
var t=new function(){var e=document.createElement("div")
e.id="stats",e.style.cssText="width:150px;opacity:0.9;cursor:pointer;position:fixed;right:80px;bottom:0px;"
var t=document.createElement("div")
t.id="ms",t.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;",e.appendChild(t)
var n=document.createElement("div")
n.id="msText",n.style.cssText="color:#0f0;font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px",n.innerHTML="Repaint rate: 0/sec",t.appendChild(n)
var o=[],i=Date.now()
return{domElement:e,ping:function(){var e=i,t=Date.now(),r=1e3/(t-e)
o.push(r),o.length>20&&o.shift()
for(var a=0,d=0;d<o.length;d++)a+=o[d]
n.textContent="Repaint rate: "+(a/o.length).toFixed(2)+"/sec",i=t}}}
return document.body.appendChild(t.domElement),{memoryStats:e,renderRate:t}}()
3 changes: 3 additions & 0 deletions ember/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# http://www.robotstxt.org
User-agent: *
Disallow: