Blame SOURCES/0061-tilebuffer-Add-timer-to-measure-paintTile-call.patch

135360
From 46584ff3db62f69d7f93a2ddb90f444419f49e3e Mon Sep 17 00:00:00 2001
135360
From: Pranav Kant <pranavk@gnome.org>
135360
Date: Tue, 23 Jun 2015 14:37:09 +0530
135360
Subject: [PATCH 061/398] tilebuffer: Add timer to measure paintTile() call
135360
135360
Change-Id: I2645863c7445e17d77e2c4e2dc24e22f8685034e
135360
(cherry picked from commit 580c70883ca8c9bc73ea42cb05983b9df57f55ff)
135360
---
135360
 libreofficekit/source/gtk/tilebuffer.cxx | 5 ++++-
135360
 1 file changed, 4 insertions(+), 1 deletion(-)
135360
135360
diff --git a/libreofficekit/source/gtk/tilebuffer.cxx b/libreofficekit/source/gtk/tilebuffer.cxx
135360
index 3f22f983d2ab..60aa16f6c50a 100644
135360
--- a/libreofficekit/source/gtk/tilebuffer.cxx
135360
+++ b/libreofficekit/source/gtk/tilebuffer.cxx
135360
@@ -91,7 +91,7 @@ Tile& TileBuffer::getTile(int x, int y, float aZoom)
135360
         aTileRectangle.x = pixelToTwip(nTileSizePixels, aZoom) * y;
135360
         aTileRectangle.y = pixelToTwip(nTileSizePixels, aZoom) * x;
135360
 
135360
-        g_info ("Rendering (%d, %d)", x, y);
135360
+        g_test_timer_start();
135360
         m_pLOKDocument->pClass->paintTile(m_pLOKDocument,
135360
                                           pBuffer,
135360
                                           nTileSizePixels, nTileSizePixels,
135360
@@ -99,6 +99,9 @@ Tile& TileBuffer::getTile(int x, int y, float aZoom)
135360
                                           pixelToTwip(nTileSizePixels, aZoom),
135360
                                           pixelToTwip(nTileSizePixels, aZoom));
135360
 
135360
+        double elapsedTime = g_test_timer_elapsed();
135360
+        g_info ("Rendered (%d, %d) in %f seconds", x, y, elapsedTime);
135360
+
135360
         //create a mapping for it
135360
         m_mTiles[index].setPixbuf(pPixBuf);
135360
         m_mTiles[index].valid = true;
135360
-- 
135360
2.12.0
135360