mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +01:00
ircd::ctx: Add specific define to activate prof::mark() for build.
This commit is contained in:
parent
29e7fa3515
commit
894a947e24
1 changed files with 6 additions and 1 deletions
|
@ -13,6 +13,11 @@
|
|||
#include <ircd/asio.h>
|
||||
#include "ctx.h"
|
||||
|
||||
/// Toggle for whether profile counting is enabled based on RB_DEBUG or manual.
|
||||
#if defined(RB_DEBUG) && !defined(IRCD_CTX_PROF_MARK)
|
||||
#define IRCD_CTX_PROF_MARK
|
||||
#endif
|
||||
|
||||
/// We make a special use of the stack-protector canary in certain places as
|
||||
/// another tool to detect corruption of a context's stack, specifically
|
||||
/// during yield and resume. This use is not really to provide security; just
|
||||
|
@ -1450,7 +1455,7 @@ ircd::ctx::prof::settings::slice_assertion
|
|||
{ "persist", false },
|
||||
};
|
||||
|
||||
#ifdef RB_DEBUG
|
||||
#ifdef IRCD_CTX_PROF_MARK
|
||||
void
|
||||
ircd::ctx::prof::mark(const event &e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue