mirror of
https://github.com/matrix-construct/construct
synced 2024-09-20 23:48:55 +02:00
ircd::prof: Add symbol definition for psi::supported=false on non-linux platforms.
This commit is contained in:
parent
32192bf439
commit
88fe138d12
2 changed files with 15 additions and 0 deletions
|
@ -22,6 +22,15 @@ ircd::prof::log
|
||||||
"prof"
|
"prof"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef __linux__
|
||||||
|
[[gnu::weak]]
|
||||||
|
decltype(ircd::prof::psi::supported)
|
||||||
|
ircd::prof::psi::supported
|
||||||
|
{
|
||||||
|
false
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
uint64_t
|
uint64_t
|
||||||
ircd::prof::time_real()
|
ircd::prof::time_real()
|
||||||
noexcept
|
noexcept
|
||||||
|
|
|
@ -1229,6 +1229,12 @@ console_cmd__vg(opt &out, const string_view &line)
|
||||||
bool
|
bool
|
||||||
console_cmd__prof__psi(opt &out, const string_view &line)
|
console_cmd__prof__psi(opt &out, const string_view &line)
|
||||||
{
|
{
|
||||||
|
if(!prof::psi::supported)
|
||||||
|
throw error
|
||||||
|
{
|
||||||
|
"Pressure Still Information is not supported."
|
||||||
|
};
|
||||||
|
|
||||||
const auto show_file{[&out]
|
const auto show_file{[&out]
|
||||||
(const string_view &name, prof::psi::file &file)
|
(const string_view &name, prof::psi::file &file)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue