mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
UserspaceEmulator+LibC: Add support for Region-of-Interest profiling
This commit is contained in:
parent
18b2484985
commit
64ccf2196c
6 changed files with 51 additions and 1 deletions
25
Userland/DevTools/UserspaceEmulator/EmulatorControl.h
Normal file
25
Userland/DevTools/UserspaceEmulator/EmulatorControl.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Assertions.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <serenity.h>
|
||||
|
||||
namespace UserspaceEmulator {
|
||||
|
||||
enum class Command {
|
||||
MarkROIStart = 5,
|
||||
MarkROIEnd = 6,
|
||||
};
|
||||
|
||||
inline void control(Command command)
|
||||
{
|
||||
emuctl(to_underlying(command), 0, 0);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue