tweak tracing spans; inlines
db deserializer tracing instrument cover Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
685b127f99
commit
02f19cf951
16 changed files with 146 additions and 34 deletions
|
@ -15,12 +15,15 @@ pub(crate) struct Items<'a> {
|
|||
}
|
||||
|
||||
impl<'a> From<State<'a>> for Items<'a> {
|
||||
#[inline]
|
||||
fn from(state: State<'a>) -> Self { Self { state } }
|
||||
}
|
||||
|
||||
impl<'a> Cursor<'a, KeyVal<'a>> for Items<'a> {
|
||||
#[inline]
|
||||
fn state(&self) -> &State<'a> { &self.state }
|
||||
|
||||
#[inline]
|
||||
fn fetch(&self) -> Option<KeyVal<'a>> { self.state.fetch().map(keyval_longevity) }
|
||||
|
||||
#[inline]
|
||||
|
|
|
@ -15,12 +15,15 @@ pub(crate) struct ItemsRev<'a> {
|
|||
}
|
||||
|
||||
impl<'a> From<State<'a>> for ItemsRev<'a> {
|
||||
#[inline]
|
||||
fn from(state: State<'a>) -> Self { Self { state } }
|
||||
}
|
||||
|
||||
impl<'a> Cursor<'a, KeyVal<'a>> for ItemsRev<'a> {
|
||||
#[inline]
|
||||
fn state(&self) -> &State<'a> { &self.state }
|
||||
|
||||
#[inline]
|
||||
fn fetch(&self) -> Option<KeyVal<'a>> { self.state.fetch().map(keyval_longevity) }
|
||||
|
||||
#[inline]
|
||||
|
|
|
@ -15,10 +15,12 @@ pub(crate) struct Keys<'a> {
|
|||
}
|
||||
|
||||
impl<'a> From<State<'a>> for Keys<'a> {
|
||||
#[inline]
|
||||
fn from(state: State<'a>) -> Self { Self { state } }
|
||||
}
|
||||
|
||||
impl<'a> Cursor<'a, Key<'a>> for Keys<'a> {
|
||||
#[inline]
|
||||
fn state(&self) -> &State<'a> { &self.state }
|
||||
|
||||
#[inline]
|
||||
|
|
|
@ -15,10 +15,12 @@ pub(crate) struct KeysRev<'a> {
|
|||
}
|
||||
|
||||
impl<'a> From<State<'a>> for KeysRev<'a> {
|
||||
#[inline]
|
||||
fn from(state: State<'a>) -> Self { Self { state } }
|
||||
}
|
||||
|
||||
impl<'a> Cursor<'a, Key<'a>> for KeysRev<'a> {
|
||||
#[inline]
|
||||
fn state(&self) -> &State<'a> { &self.state }
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue