diff --git a/examples/main.c b/examples/main.c
index dcc113ab6af6a06e7c20ac1aac7c2d3b715f7ef3..11163b42523fa5b1de1438ad8e67dde0fe9c88ef 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -45,6 +45,9 @@
 #define ENGINE_POLICY engine_policy_none
 #endif
 
+/* Global profiler. */
+struct profiler prof;
+
 /**
  * @brief Help messages for the command line parameters.
  */