mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
modules/console: Start prof cmd suite w/ callgrind hypercall interface.
This commit is contained in:
parent
55fc2c6f76
commit
65e58a1787
1 changed files with 40 additions and 0 deletions
|
@ -852,6 +852,46 @@ console_cmd__mem__trim(opt &out, const string_view &line)
|
|||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// prof
|
||||
//
|
||||
|
||||
bool
|
||||
console_cmd__prof__vg__start(opt &out, const string_view &line)
|
||||
{
|
||||
prof::vg::start();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
console_cmd__prof__vg__stop(opt &out, const string_view &line)
|
||||
{
|
||||
prof::vg::stop();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
console_cmd__prof__vg__reset(opt &out, const string_view &line)
|
||||
{
|
||||
prof::vg::reset();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
console_cmd__prof__vg__toggle(opt &out, const string_view &line)
|
||||
{
|
||||
prof::vg::toggle();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
console_cmd__prof__vg__dump(opt &out, const string_view &line)
|
||||
{
|
||||
char reason[128];
|
||||
prof::vg::dump(data(strlcpy(reason, line)));
|
||||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// env
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue