Skip to content

Commit

Permalink
CatalogParser: Add benchmark measurements
Browse files Browse the repository at this point in the history
refs #13013
  • Loading branch information
Johannes Meyer committed Dec 12, 2016
1 parent 3e957ca commit 60ed257
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -4,6 +4,7 @@
namespace Icinga\Module\Translation\Catalog;

use SplFileObject;
use Icinga\Application\Benchmark;
use Icinga\Module\Translation\Exception\CatalogParserException;
use Icinga\Util\File;

Expand Down Expand Up @@ -83,6 +84,7 @@ public function __construct($catalogPath)
*/
public static function parsePath($catalogPath)
{
Benchmark::measure('CatalogParser::parsePath()');
$parser = new static($catalogPath);
return $parser->parse();
}
Expand Down

0 comments on commit 60ed257

Please sign in to comment.