Add tracing instrumentation, just like queries automatically add it
This commit is contained in:
parent
2157f31731
commit
9defc971f1
@ -23,6 +23,7 @@ macro_rules! declare_hooks {
|
|||||||
$(#[$attr])*
|
$(#[$attr])*
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
#[instrument(level = "debug", skip(self), ret)]
|
||||||
pub fn $name(self, $($arg: $K,)*) -> $V
|
pub fn $name(self, $($arg: $K,)*) -> $V
|
||||||
{
|
{
|
||||||
(self.tcx.hooks.$name)(self, $($arg,)*)
|
(self.tcx.hooks.$name)(self, $($arg,)*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user