summaryrefslogtreecommitdiffstats
path: root/devtools/client/memory/test/browser/doc_steady_allocation.html
blob: 65703c878f87e503c84419d501bb87d7f36c7902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
    <body>
        <script>
         var objects = window.objects = [];

         var allocate = this.allocate = function allocate() {
           for (var i = 0; i < 100; i++)
             objects.push({});
           setTimeout(allocate, 10);
         }

         allocate();
        </script>
    </body>
</html>