pub struct ResolveWork {
pub specifier_calls: u64,
pub unique_specifiers: u64,
pub oxc_resolve_calls: u64,
pub canonicalize_calls: u64,
}Expand description
Work counts for import resolution.
Fields§
§specifier_calls: u64Specifier resolutions that the import sites asked for: one for each
static import binding, re-export, require(), import() and module
mock. Internal retries inside the resolver are not counted here.
unique_specifiers: u64Distinct (specifier, from_style) pairs for each importing file,
summed over all files. specifier_calls / unique_specifiers above 1.0
shows bindings that share a specifier. The resolver runs at most once
for each of these pairs. A pair that returns before the resolver, such
as an external URL, makes no resolver call.
oxc_resolve_calls: u64Calls into oxc_resolver, including fallback retries.
canonicalize_calls: u64Path canonicalize calls that the run needs: each direct call, plus one for each distinct path that goes through the canonicalize cache.
Trait Implementations§
Source§impl AddAssign for ResolveWork
impl AddAssign for ResolveWork
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl Clone for ResolveWork
impl Clone for ResolveWork
impl Copy for ResolveWork
Source§impl Debug for ResolveWork
impl Debug for ResolveWork
Source§impl Default for ResolveWork
impl Default for ResolveWork
impl Eq for ResolveWork
Source§impl PartialEq for ResolveWork
impl PartialEq for ResolveWork
impl StructuralPartialEq for ResolveWork
Auto Trait Implementations§
impl Freeze for ResolveWork
impl RefUnwindSafe for ResolveWork
impl Send for ResolveWork
impl Sync for ResolveWork
impl Unpin for ResolveWork
impl UnsafeUnpin for ResolveWork
impl UnwindSafe for ResolveWork
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more