Skip to main content

InstrumentStats

Struct InstrumentStats 

Source
pub struct InstrumentStats {
Show 25 fields pub parse_expr_calls: u64, pub parse_expr_bp_recursive_calls: u64, pub parse_array_element_calls: u64, pub parse_array_element_with_arrow: u64, pub parse_expr_array_first: u64, pub parse_expr_array_second: u64, pub parse_array_count: u64, pub parse_array_element_count: u64, pub parse_atom_calls: u64, pub parse_array_simple_values: u64, pub parse_stmt_calls: u64, pub parse_function_calls: u64, pub parse_class_calls: u64, pub parse_foreach_calls: u64, pub parse_loop_calls: u64, pub parse_if_calls: u64, pub parse_switch_calls: u64, pub parse_try_calls: u64, pub parse_attribute_calls: u64, pub arena_vec_allocations: u64, pub arena_vec_bytes: u64, pub arena_alloc_calls: u64, pub arena_vec_reallocations: u64, pub arena_vec_wasted_capacity: u64, pub arena_vec_empty: u64,
}
Expand description

Global instrumentation statistics

Fields§

§parse_expr_calls: u64

Total calls to parse_expr

§parse_expr_bp_recursive_calls: u64

Total calls to parse_expr_bp (with min_bp != 0)

§parse_array_element_calls: u64

Total calls to parse_array_element

§parse_array_element_with_arrow: u64

Total calls to parse_array_element that had =>

§parse_expr_array_first: u64

Total parse_expr calls in array elements (first expression)

§parse_expr_array_second: u64

Total parse_expr calls in array elements (second expression after =>)

§parse_array_count: u64

Total arrays parsed

§parse_array_element_count: u64

Total array elements parsed

§parse_atom_calls: u64

Number of times parse_atom was called

§parse_array_simple_values: u64

Number of simple/atomic values in arrays (not followed by operators)

§parse_stmt_calls: u64

Total statements parsed

§parse_function_calls: u64

Total function/method declarations

§parse_class_calls: u64

Total class/trait/interface declarations

§parse_foreach_calls: u64

Total foreach statements

§parse_loop_calls: u64

Total for/while/do-while statements

§parse_if_calls: u64

Total if/elseif/else statements

§parse_switch_calls: u64

Total switch statements

§parse_try_calls: u64

Total try/catch/finally statements

§parse_attribute_calls: u64

Total attribute groups parsed (PHP 8.0+)

§arena_vec_allocations: u64

Total ArenaVec allocations

§arena_vec_bytes: u64

Total bytes allocated in ArenaVec

§arena_alloc_calls: u64

Total times arena.alloc was called

§arena_vec_reallocations: u64

Total ArenaVec reallocations (growth)

§arena_vec_wasted_capacity: u64

Total bytes wasted in pre-allocated but unused capacity

§arena_vec_empty: u64

Number of empty ArenaVec allocations (capacity but no elements)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.