0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::ctx: Inline prof::mark() into callsites; remove static w/ indirect jump.

This commit is contained in:
Jason Volk 2020-08-02 06:20:22 -07:00
parent 59197ee2d5
commit ea039f29b5
2 changed files with 3 additions and 10 deletions

View file

@ -1603,8 +1603,8 @@ ircd::ctx::prof::settings::slice_assertion
{ "persist", false },
};
[[gnu::hot]]
void
[[using gnu: flatten, always_inline]]
inline void
ircd::ctx::prof::mark(const event &e)
{
inc_ticker(e);
@ -1619,7 +1619,6 @@ ircd::ctx::prof::mark(const event &e)
}
}
[[gnu::hot]]
void
ircd::ctx::prof::inc_ticker(const event &e)
noexcept
@ -1634,14 +1633,12 @@ noexcept
current->profile.event[uint8_t(e)]++;
}
[[gnu::hot]]
void
ircd::ctx::prof::handle_cur_enter()
{
slice_enter();
}
[[gnu::hot]]
void
ircd::ctx::prof::handle_cur_leave()
{
@ -1649,7 +1646,6 @@ ircd::ctx::prof::handle_cur_leave()
check_slice();
}
[[gnu::hot]]
void
ircd::ctx::prof::handle_cur_yield()
{
@ -1658,14 +1654,12 @@ ircd::ctx::prof::handle_cur_yield()
check_stack();
}
[[gnu::hot]]
void
ircd::ctx::prof::handle_cur_continue()
{
slice_enter();
}
[[gnu::hot]]
void
ircd::ctx::prof::slice_enter()
noexcept
@ -1676,7 +1670,6 @@ noexcept
assert(_slice_start >= _slice_stop);
}
[[gnu::hot]]
void
ircd::ctx::prof::slice_leave()
noexcept

View file

@ -20,7 +20,7 @@
namespace ircd::ctx::prof
{
void mark(const event &);
static void mark(const event &);
}
/// Internal context implementation