mirror of
https://github.com/matrix-construct/construct
synced 2025-04-29 13:04:17 +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"
|
||||
};
|
||||
|
||||
#ifndef __linux__
|
||||
[[gnu::weak]]
|
||||
decltype(ircd::prof::psi::supported)
|
||||
ircd::prof::psi::supported
|
||||
{
|
||||
false
|
||||
};
|
||||
#endif
|
||||
|
||||
uint64_t
|
||||
ircd::prof::time_real()
|
||||
noexcept
|
||||
|
|
|
@ -1229,6 +1229,12 @@ console_cmd__vg(opt &out, const string_view &line)
|
|||
bool
|
||||
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 string_view &name, prof::psi::file &file)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue