[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Sun May 2 02:56:18 CEST 2010
SVN commit 1121647 by jmhoffmann:
MarbleModel: Measure elapsed time in downloadRegion.
M +4 -0 MarbleModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleModel.cpp #1121646:1121647
@@ -928,6 +928,8 @@
TileCoordsPyramid const & pyramid ) const
{
Q_ASSERT( d->m_tileLoader );
+ QTime t;
+ t.start();
// When downloading a region (the author of these lines thinks) most users probably expect
// the download to begin with the low resolution tiles and then procede level-wise to
// higher resolution tiles. In order to achieve this, we start requesting downloads of
@@ -944,6 +946,8 @@
d->m_tileLoader->reloadTile( tileId, DownloadBulk );
}
}
+ int const elapsedMs = t.elapsed();
+ mDebug() << "MarbleModel::downloadRegion:" << pyramid.tilesCount() << "tiles, " << elapsedMs << "ms";
}
void MarbleModel::addDownloadPolicies( GeoSceneDocument *mapTheme )
More information about the Marble-commits
mailing list