Skip to content
Permalink
Browse files

Enabled runtime profiling of ept provider creation

  • Loading branch information
nyalldawson committed Oct 26, 2020
1 parent b851caa commit 97966026d23344fff5583fcdbfee4514ad13b732
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/providers/ept/qgseptprovider.cpp
@@ -19,6 +19,8 @@
#include "qgseptprovider.h"
#include "qgseptpointcloudindex.h"
#include "qgseptdataitems.h"
#include "qgsruntimeprofiler.h"
#include "qgsapplication.h"

///@cond PRIVATE

@@ -32,6 +34,10 @@ QgsEptProvider::QgsEptProvider(
: QgsPointCloudDataProvider( uri, options, flags )
, mIndex( new QgsEptPointCloudIndex )
{
std::unique_ptr< QgsScopedRuntimeProfile > profile;
if ( QgsApplication::profiler()->groupIsActive( QStringLiteral( "projectload" ) ) )
profile = qgis::make_unique< QgsScopedRuntimeProfile >( tr( "Open data source" ), QStringLiteral( "projectload" ) );

mIsValid = mIndex->load( uri );
}

0 comments on commit 9796602

Please sign in to comment.
You can’t perform that action at this time.