From f94d7c40d1186dc6dbabaa8bf9ce98fa3e6a1cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Wed, 20 Jul 2022 15:00:17 +0200 Subject: [PATCH] Added profiling to hello_mxtask. --- repos/mml/src/app/hello_mxtask/main.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/mml/src/app/hello_mxtask/main.cc b/repos/mml/src/app/hello_mxtask/main.cc index 0564d8544a..be24ff474e 100644 --- a/repos/mml/src/app/hello_mxtask/main.cc +++ b/repos/mml/src/app/hello_mxtask/main.cc @@ -66,6 +66,9 @@ void Libc::Component::construct(Libc::Env &env) // Create a runtime for the given cores. mx::tasking::runtime_guard _{cores}; + // Create and profile and write it to stdout + mx::tasking::runtime::profile(std::cout); + // Create an instance of the HelloWorldTask with the current core as first // parameter. The core is required for memory allocation. auto *hello_world_task = mx::tasking::runtime::new_task(cores.front());