summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorPtyl Dragon <ptyl@cloudon.com>2013-11-04 16:06:15 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:52:07 +0100
commit865433b3480fd0c655186f9731d41822a6ddab3f (patch)
tree798df646e6afbc47b1a5908e41b8f96a7b015ff1 /ios
parent98adbf2d80cf998f7b3825fa4d685de6f25be352 (diff)
measuring the time it takes to render a tile
Change-Id: I37db170af0e507c99d571b94ff78a1987944290e
Diffstat (limited to 'ios')
-rw-r--r--ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m
index 1b25648b2c82..784c0dd848ef 100644
--- a/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m
+++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/testing_tiles/MLOTestingTile.m
@@ -43,6 +43,7 @@
- (void)drawRect:(CGRect)rect
{
+ NSTimeInterval startTime = CACurrentMediaTime();
CGContextRef context = UIGraphicsGetCurrentContext();
MLODpxPoint tilePosition =MLODpxPointByDpxes(self.tester.params.tilePosX,self.tester.params.tilePosY);
@@ -62,6 +63,7 @@
tilePosition,
tileSize);
+ NSLog(@"tile rendering took %f seconds",CACurrentMediaTime() - startTime);
MLODpxSize size = touch_lo_get_content_size();
NSLog(@"touch_lo_get_content_size: width=%f, height=%f",size.width, size.height);
}