summaryrefslogtreecommitdiff
path: root/src/model/styles.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-11 11:35:45 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-11 11:35:45 +0200
commit998a3c44fd79eac92c375ec9e755288bc146a279 (patch)
tree70825f2d68ed64c32b8b2551dcf0e545753f643c /src/model/styles.rs
parent2f0b5eeae09bd880e4552bb83e44d9cd32571c58 (diff)
Remove tracing from cheap functions
Turns out that having tracing enabled on some functions that get called a lot distorts the traces so that their parent stack frames look much more expensive than they actually are.
Diffstat (limited to 'src/model/styles.rs')
-rw-r--r--src/model/styles.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs
index efbdb9d1..54784307 100644
--- a/src/model/styles.rs
+++ b/src/model/styles.rs
@@ -563,7 +563,6 @@ impl<'a> StyleChain<'a> {
/// The resulting style chain contains styles from `local` as well as
/// `self`. The ones from `local` take precedence over the ones from
/// `self`. For folded properties `local` contributes the inner value.
- #[tracing::instrument(skip_all)]
pub fn chain<'b>(&'b self, local: &'b Styles) -> StyleChain<'b> {
if local.is_empty() {
*self
@@ -573,7 +572,6 @@ impl<'a> StyleChain<'a> {
}
/// Cast the first value for the given property in the chain.
- #[tracing::instrument(skip_all)]
pub fn get<T: Cast>(
self,
func: ElemFunc,
@@ -587,7 +585,6 @@ impl<'a> StyleChain<'a> {
}
/// Cast the first value for the given property in the chain.
- #[tracing::instrument(skip_all)]
pub fn get_resolve<T: Cast + Resolve>(
self,
func: ElemFunc,
@@ -599,7 +596,6 @@ impl<'a> StyleChain<'a> {
}
/// Cast the first value for the given property in the chain.
- #[tracing::instrument(skip_all)]
pub fn get_fold<T: Cast + Fold>(
self,
func: ElemFunc,
@@ -621,7 +617,6 @@ impl<'a> StyleChain<'a> {
}
/// Cast the first value for the given property in the chain.
- #[tracing::instrument(skip_all)]
pub fn get_resolve_fold<T>(
self,
func: ElemFunc,
@@ -656,7 +651,6 @@ impl<'a> StyleChain<'a> {
}
/// Iterate over all values for the given property in the chain.
- #[tracing::instrument(skip_all)]
pub fn properties<T: Cast + 'a>(
self,
func: ElemFunc,