diff --git a/src/Phug/Renderer/Profiler/ProfilerModule.php b/src/Phug/Renderer/Profiler/ProfilerModule.php
index <HASH>..<HASH> 100644
--- a/src/Phug/Renderer/Profiler/ProfilerModule.php
+++ b/src/Phug/Renderer/Profiler/ProfilerModule.php
@@ -271,7 +271,7 @@ class ProfilerModule extends AbstractModule
         if ($formatter instanceof Formatter) {
             $formatter->setOption('patterns.debug_comment', function ($nodeId) use ($formatter) {
                 return "\n".($nodeId !== ''
-                        ? static::class.'::recordProfilerDisplayEvent('.
+                        ? '\\'.static::class.'::recordProfilerDisplayEvent('.
                             var_export($this->getDebugId($nodeId), true).
                         ");\n"
                         : ''
Use absolute class path to avoid bad resolve in namespace