definitions fixed

This commit is contained in:
Erjan Gavalji
2015-03-03 10:34:40 +02:00
parent a03ce4ca1d
commit cc829e0152
705 changed files with 321431 additions and 148812 deletions

View File

@ -0,0 +1,2 @@
import application = require("application");
application.mainModule = "app/ComplexObjectGraphMemoryTest/mainPage";

View File

@ -0,0 +1,55 @@
import pagesModule = require("ui/page");
import stackLayoutModule = require("ui/layouts/stack-layout");
import buttonModule = require("ui/button");
import labelModule = require("ui/label");
import trace = require("trace");
import enums = require("ui/enums");
import fps = require("fps-meter");
import cn = require("console/console-native");
export function createPage() {
fps.addCallback(function (fps, minFps) {
trace.write("fps=" + fps + " minFps=" + minFps, trace.categories.Test, trace.messageType.info);
});
fps.start();
var count = 1000;
var buttonsPerRow = 10;
var mainStackLayout = new stackLayoutModule.StackLayout();
mainStackLayout.orientation = enums.Orientation.vertical;
var label = new labelModule.Label();
mainStackLayout.addChild(label);
if (label.ios) {// Hack for an iOS Arrange problem
label.height = 80;
}
var button;
var childStackLayout;
var childStackLayoutCount = count / buttonsPerRow;
trace.write("Creating " + count + " buttons.", trace.categories.Test, trace.messageType.info);
var startTime = cn.timeMillis()
for (var i = 0; i < childStackLayoutCount; i++) {
childStackLayout = new stackLayoutModule.StackLayout();
childStackLayout.orientation = enums.Orientation.horizontal;
mainStackLayout.addChild(childStackLayout);
for (var j = 0; j < buttonsPerRow; j++) {
button = new buttonModule.Button();
button.on(buttonModule.knownEvents.tap, function (data) {
trace.write("eventName=" + data.eventName + " object=" + data.object, trace.categories.Test, trace.messageType.info);
});
button.text = "" + i + j;
childStackLayout.addChild(button);
}
}
var elapsedTime = Math.round(cn.timeMillis() - startTime);
var message = "Created " + count + " buttons in " + elapsedTime + " ms.";
trace.write(message, trace.categories.Test, trace.messageType.info);
label.text = message;
var page = new pagesModule.Page();
page.content = mainStackLayout;
return page;
}
//export var Page = page;

View File

@ -0,0 +1,2 @@
{ "name" : "ComplexObjectGraphMemoryTest",
"main" : "app.js" }

View File

@ -0,0 +1,76 @@
Applications Memory Usage (kB):
Uptime: 14243247 Realtime: 68937256
** MEMINFO in pid 28019 [telerik.kimera.skeletonts] **
Pss Private Private Swapped Heap Heap Heap
Total Dirty Clean Dirty Size Alloc Free
------ ------ ------ ------ ------ ------ ------
Native Heap 3361 3336 0 0 6764 6137 134
Dalvik Heap 2636 1716 0 0 17900 17631 269
Dalvik Other 1345 1196 0 0
Stack 200 200 0 0
Other dev 605 600 4 0
.so mmap 5313 512 4048 0
.jar mmap 4 0 0 0
.apk mmap 36 0 0 0
.ttf mmap 24 0 0 0
.dex mmap 1469 20 896 0
Other mmap 6 4 0 0
Graphics 24928 24928 0 0
GL 5312 5312 0 0
Unknown 3140 3140 0 0
TOTAL 48379 40964 4948 0 24664 23768 403
Objects
Views: 9 ViewRootImpl: 1
AppContexts: 3 Activities: 1
Assets: 2 AssetManagers: 2
Local Binders: 6 Proxy Binders: 14
Death Recipients: 0
OpenSSL Sockets: 0
SQL
MEMORY_USED: 0
PAGECACHE_OVERFLOW: 0 MALLOC_SIZE: 0
Asset Allocations
zip:/data/app/telerik.kimera.skeletonts-2.apk:/resources.arsc: 1K

View File

@ -0,0 +1,38 @@
Applications Memory Usage (kB):
Uptime: 14345842 Realtime: 69039852
** MEMINFO in pid 28209 [telerik.kimera.skeletonts] **
Pss Private Private Swapped Heap Heap Heap
Total Dirty Clean Dirty Size Alloc Free
------ ------ ------ ------ ------ ------ ------
Native Heap 5508 5484 0 0 8832 8090 249
Dalvik Heap 7354 6420 0 0 22620 22156 464
Dalvik Other 1843 1692 0 0
Stack 192 192 0 0
Other dev 955 924 4 0
.so mmap 5348 516 4072 0
.jar mmap 8 0 0 0
.apk mmap 46 0 4 0
.ttf mmap 24 0 0 0
.dex mmap 1815 28 1120 0
Other mmap 6 4 0 0
Graphics 24928 24928 0 0

View File

@ -0,0 +1,76 @@
Applications Memory Usage (kB):
Uptime: 14408457 Realtime: 69102467
** MEMINFO in pid 28437 [telerik.kimera.skeletonts] **
Pss Private Private Swapped Heap Heap Heap
Total Dirty Clean Dirty Size Alloc Free
------ ------ ------ ------ ------ ------ ------
Native Heap 6815 6792 0 0 10144 9386 265
Dalvik Heap 12414 11480 0 0 27680 25686 1994
Dalvik Other 1901 1696 0 0
Stack 200 200 0 0
Other dev 955 924 4 0
.so mmap 5348 516 4072 0
.jar mmap 8 0 0 0
.apk mmap 46 0 4 0
.ttf mmap 24 0 0 0
.dex mmap 1812 28 1120 0
Other mmap 6 4 0 0
Graphics 24928 24928 0 0
GL 5312 5312 0 0
Unknown 25244 25244 0 0
TOTAL 85013 77124 5200 0 37824 35072 2259
Objects
Views: 2209 ViewRootImpl: 1
AppContexts: 3 Activities: 1
Assets: 2 AssetManagers: 2
Local Binders: 6 Proxy Binders: 13
Death Recipients: 0
OpenSSL Sockets: 0
SQL
MEMORY_USED: 0
PAGECACHE_OVERFLOW: 0 MALLOC_SIZE: 0
Asset Allocations
zip:/data/app/telerik.kimera.skeletonts-2.apk:/resources.arsc: 1K