0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-01 00:08:22 +02:00

ircd::ctx: Enable ctx::prof on debug builds only.

This commit is contained in:
Jason Volk 2018-02-05 10:48:46 -08:00
parent 3ba527079b
commit 69427d7e43

View file

@ -821,6 +821,7 @@ struct ircd::ctx::prof::settings ircd::ctx::prof::settings
0us, // slice_assertion unused; warning sufficient for now...
};
#ifdef RB_DEBUG
void
ircd::ctx::prof::mark(const event &e)
{
@ -833,6 +834,12 @@ ircd::ctx::prof::mark(const event &e)
default: break;
}
}
#else
void
ircd::ctx::prof::mark(const event &e)
{
}
#endif
void
ircd::ctx::prof::handle_cur_enter()