mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Added profiling to hello_mxtask.
This commit is contained in:
@@ -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<HelloWorldTask>(cores.front());
|
||||
|
||||
Reference in New Issue
Block a user