From f0b96674c9082ee4b671229e1255480711b0cd79 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 10 Jan 2020 12:36:13 +0100 Subject: [PATCH] Import: distinct fetch from store in benchmark --- library/Director/Import/Import.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Director/Import/Import.php b/library/Director/Import/Import.php index 46f9da4b..6a37c660 100644 --- a/library/Director/Import/Import.php +++ b/library/Director/Import/Import.php @@ -3,6 +3,7 @@ namespace Icinga\Module\Director\Import; use Exception; +use Icinga\Application\Benchmark; use Icinga\Exception\IcingaException; use Icinga\Module\Director\Db; use Icinga\Module\Director\Hook\ImportSourceHook; @@ -164,7 +165,9 @@ class Import $this->data = ImportSourceHook::forImportSource( $this->source )->fetchData(); + Benchmark::measure('Fetched all data from Import Source'); $this->source->applyModifiers($this->data); + Benchmark::measure('Applied Property Modifiers to imported data'); } return $this->data;