0
0
Fork 0
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:
Jason Volk 2019-04-19 06:03:11 -07:00
parent 55fc2c6f76
commit 65e58a1787

View file

@ -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
//