Skip to content
Permalink
Browse files
re-add run-time profiling
be friendly to qgis_process
  • Loading branch information
alexbruy committed Jun 21, 2021
1 parent 90521e6 commit e1cf15cafdec072715c56957a724b4fab982bab7
@@ -22,18 +22,22 @@
__copyright__ = '(C) 2021, Alexander Bruy'


from qgis.core import QgsApplication
from qgis.core import QgsApplication, QgsRuntimeProfiler

from grassprovider.Grass7AlgorithmProvider import Grass7AlgorithmProvider
with QgsRuntimeProfiler.profile('Import GRASS Provider'):
from grassprovider.Grass7AlgorithmProvider import Grass7AlgorithmProvider


class GrassProviderPlugin:

def __init__(self):
self.provider = Grass7AlgorithmProvider()

def initGui(self):
def initProcessing(self):
QgsApplication.processingRegistry().addProvider(self.provider)

def initGui(self):
self.initProcessing()

def unload(self):
QgsApplication.processingRegistry().removeProvider(self.provider)
@@ -22,18 +22,22 @@
__copyright__ = '(C) 2021, Alexander Bruy'


from qgis.core import QgsApplication
from qgis.core import QgsApplication, QgsRuntimeProfiler

from otbprovider.OtbAlgorithmProvider import OtbAlgorithmProvider
with QgsRuntimeProfiler.profile('Import OTB Provider'):
from otbprovider.OtbAlgorithmProvider import OtbAlgorithmProvider


class OtbProviderPlugin:

def __init__(self):
self.provider = OtbAlgorithmProvider()

def initGui(self):
def initProcessing(self):
QgsApplication.processingRegistry().addProvider(self.provider)

def initGui(self):
self.initProcessing()

def unload(self):
QgsApplication.processingRegistry().removeProvider(self.provider)
@@ -22,18 +22,22 @@
__copyright__ = '(C) 2021, Alexander Bruy'


from qgis.core import QgsApplication
from qgis.core import QgsApplication, QgsRuntimeProfiler

from sagaprovider.SagaAlgorithmProvider import SagaAlgorithmProvider
with QgsRuntimeProfiler.profile('Import SAGA Provider'):
from sagaprovider.SagaAlgorithmProvider import SagaAlgorithmProvider


class SagaProviderPlugin:

def __init__(self):
self.provider = SagaAlgorithmProvider()

def initGui(self):
def initProcessing(self):
QgsApplication.processingRegistry().addProvider(self.provider)

def initGui(self):
self.initProcessing()

def unload(self):
QgsApplication.processingRegistry().removeProvider(self.provider)

0 comments on commit e1cf15c

Please sign in to comment.