FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PerfCounter

    enum · ferroui-base · v0.5.0

    enum PerfCounter
    

    What is counted. Each counter names, in its documentation, the function that counts it.

    View source

    Members

    PropertyChangesRaised

    PropertyChangesRaised
    

    FerroObject::raise_property_changed: every notification built and passed to the on_property_changed chain of the class.

    Source

    PropertyChangesEffective

    PropertyChangesEffective
    

    FerroObject::raise_property_changed: the ones of an effective value, which go on to the handlers of the property and the listeners of the object.

    Source

    PropertyChangesWithPropertyHandlers

    PropertyChangesWithPropertyHandlers
    

    PropertyChangedObservable::notify: the property has at least one handler (the class handlers and the subscriptions to the property).

    Source

    PropertyChangesWithObjectListeners

    PropertyChangesWithObjectListeners
    

    FerroObject::raise_property_changed: the object has at least one listener of its property changes.

    Source

    InheritanceAncestorChanges

    InheritanceAncestorChanges
    

    ValueStore::set_inheritance_parent: the inheritance ancestor of an object changed.

    Source

    InheritedValuesCompared

    InheritedValuesCompared
    

    ValueStore::set_inheritance_parent: the inherited properties of the old and the new ancestor chain that were paired.

    Source

    InheritedValuesDiffering

    InheritedValuesDiffering
    

    ValueStore::set_inheritance_parent: the ones whose old and new value differ, each of which starts a walk of the subtree.

    Source

    InheritedValueWalkVisits

    InheritedValueWalkVisits
    

    ValueStore::inherited_value_changed: the objects such a walk reaches (the object itself and its inheritance descendants, once per property).

    Source

    InheritanceAncestorWalkVisits

    InheritanceAncestorWalkVisits
    

    ValueStore::on_inheritance_ancestor_changed: visits that update the nearest inherited-value holder, including stops at local holders.

    Source

    InheritedEffectiveValueWalkVisits

    InheritedEffectiveValueWalkVisits
    

    ValueStore::on_ancestor_inherited_value_changed: visits for a change to an existing inherited effective value, including local overrides.

    Source

    StylingPassesCompleted

    StylingPassesCompleted
    

    ValueStore::end_styling: completed outermost styling batches.

    Source

    SingleValueReevaluations

    SingleValueReevaluations
    

    ValueStore::reevaluate_effective_value: non-deferred single-property reevaluation attempts (including restarts).

    Source

    FullValueReevaluations

    FullValueReevaluations
    

    ValueStore::reevaluate_effective_values: non-deferred full-store reevaluation attempts (including restarts).

    Source

    ReevaluatedEffectiveValues

    ReevaluatedEffectiveValues
    

    Existing effective values reset by a full-store reevaluation.

    Source

    ReevaluatedFrameEntries

    ReevaluatedFrameEntries
    

    Frame entries visited by a full-store reevaluation, before priority and value availability checks.

    Source

    LogicalTreeAttachments

    LogicalTreeAttachments
    

    StyledElement::on_attached_to_logical_tree_core: an element that was not in a logical tree enters one.

    Source

    LogicalTreeDetachments

    LogicalTreeDetachments
    

    StyledElement::on_detached_from_logical_tree_core: an element leaves its logical tree.

    Source

    ImplicitThemeLookups

    ImplicitThemeLookups
    

    StyledElement::get_effective_theme: the implicit theme was not known and was looked up as a resource.

    Source

    StyleHostsWalked

    StyleHostsWalked
    

    StyledElement::apply_styles: a style host between the element and the root was asked for its styles.

    Source

    StylesEvaluated

    StylesEvaluated
    

    Style::try_attach_checked and ContainerQuery::try_attach_checked: a style with setters (a query with children) was matched against an element.

    Source

    StylesMatched

    StylesMatched
    

    The same functions: the selector (the query) matched and the style was instanced on the element.

    Source

    ControlThemesEvaluated

    ControlThemesEvaluated
    

    ControlTheme::try_attach_checked: a control theme was tested against the style key of an element.

    Source

    ControlThemesMatched

    ControlThemesMatched
    

    ControlTheme::try_attach_checked: it applies and was instanced.

    Source

    StyleInstancesAttached

    StyleInstancesAttached
    

    StyleBase::try_attach_instance: a style instance was added to the value store of an element.

    Source

    StyleInstancesCreated

    StyleInstancesCreated
    

    StyleBase::try_attach_instance: the instance was built (its setters instanced) instead of the shared instance of the style being taken.

    Source

    ResourceLookups

    ResourceLookups
    

    IResourceHost::try_find_resource: a lookup up the logical tree.

    Source

    ResourceHostsProbed

    ResourceHostsProbed
    

    IResourceHost::try_find_resource: the hosts such a lookup asked (try_get_resource of the host and of each styling parent).

    Source

    BindingsInstanced

    BindingsInstanced
    

    FerroObject::bind_binding_with_anchor: a binding was instanced on a property of an object.

    Source

    BindingExpressionsCreated

    BindingExpressionsCreated
    

    UntypedBindingExpressionBase::new and TypedBindingExpression::new: a binding expression was created (by a binding, a setter, a template binding or a dynamic resource).

    Source

    TemplateBindingExpressionsCreated

    TemplateBindingExpressionsCreated
    

    TemplateBindingExpression::new.

    Source

    DynamicResourceExpressionsCreated

    DynamicResourceExpressionsCreated
    

    DynamicResourceExpression::new (the XAML runtime library).

    Source

    SetterBindingEntriesCreated

    SetterBindingEntriesCreated
    

    SetterBindingEntry::new: a style attach made the entry of a setter whose value is a binding. The entry creates its binding expression when its value is first asked for.

    Source

    BindingExpressionsStarted

    BindingExpressionsStarted
    

    UntypedBindingExpression::start of an expression that was not running: the expression subscribed to its source.

    Source

    DynamicResourceExpressionsStarted

    DynamicResourceExpressionsStarted
    

    DynamicResourceExpression::on_start (the XAML runtime library): the expression found its host, subscribed to it and looked its resource up.

    Source

    DynamicResourceLookups

    DynamicResourceLookups
    

    DynamicResourceExpression::publish_value (the XAML runtime library): a dynamic resource looked its resource up and published it.

    Source

    DynamicResourceNotificationsSeen

    DynamicResourceNotificationsSeen
    

    DynamicResourceExpression (the XAML runtime library): a notification of changed resources that was not newer than the last lookup of the expression, which did not look up again.

    Source

    BindingValuesPublished

    BindingValuesPublished
    

    UntypedBindingExpressionBase::publish_value of a running expression and TypedBindingExpression::publish_value.

    Source

    TextLayoutsCreated

    TextLayoutsCreated
    

    TextLayout::from_text_source.

    Source

    TextShapingEditsTried

    TextShapingEditsTried
    

    TextFormatterImpl::shape_keeping: a long text was shaped from the shaping of the text its owner had before (step 7 of text-layout-performance.md).

    Source

    TextShapingEditsKept

    TextShapingEditsKept
    

    The edit kept glyphs of the shaping before.

    Source

    TextBreakEditsKept

    TextBreakEditsKept
    

    The break opportunities of the text were made from the table of the text before.

    Source

    TextLayoutCacheHits

    TextLayoutCacheHits
    

    TextLayoutCache::get_or_create: the layout of a plain text was the one kept for it.

    Source

    TextLayoutCacheMisses

    TextLayoutCacheMisses
    

    TextLayoutCache::get_or_create: the layout of a plain text was made and kept.

    Source

    TextLayoutCacheEvictions

    TextLayoutCacheEvictions
    

    TextLayoutCache: a kept layout nothing held was let go for room.

    Source

    TextLayoutCacheFirstRequests

    TextLayoutCacheFirstRequests
    

    TextLayoutCache::get_or_create: the cache was full and was asked for the text for the first time; the layout was made for its caller alone.

    Source

    TextLinesFormatted

    TextLinesFormatted
    

    TextFormatterImpl::format_line_with_cache: a line was asked for.

    Source

    TextRunCacheHits

    TextRunCacheHits
    

    TextFormatterImpl::format_line_with_cache: the shaped runs of the line came from the text run cache.

    Source

    TextRunCacheMisses

    TextRunCacheMisses
    

    TextFormatterImpl::format_line_with_cache: a cache was given, did not hold the line, and the shaped runs were added to it.

    Source

    TextGlyphRunsKept

    TextGlyphRunsKept
    

    TextRunCache::adopt_line_glyph_runs: a run of a line took the platform glyph run of the same glyphs of the layout before.

    Source

    TextRunsShaped

    TextRunsShaped
    

    TextShaper::shape_text: a run was shaped by the platform shaper.

    Source

    TextBlockLayoutDropsShaping

    TextBlockLayoutDropsShaping
    

    TextBlock::invalidate_text_layout: a layout was dropped with its shaped runs (the text or a property the shaping depends on changed).

    Source

    TextBlockLayoutDropsParagraph

    TextBlockLayoutDropsParagraph
    

    TextBlock::invalidate_text_layout_keep_cache: a layout was dropped and its shaped runs kept (a property of the paragraph changed).

    Source

    TextBlockLayoutDropsMeasureInvalidated

    TextBlockLayoutDropsMeasureInvalidated
    

    TextBlock::on_measure_invalidated: a layout was dropped because the measure of the text block was invalidated by something else than its text.

    Source

    TextBlockLayoutDropsMeasureConstraint

    TextBlockLayoutDropsMeasureConstraint
    

    TextBlock::measure_override: a layout was dropped for the constraint of the measure.

    Source

    TextBlockLayoutDropsEmbeddedControls

    TextBlockLayoutDropsEmbeddedControls
    

    TextBlock::measure_override: a layout was dropped because an embedded control was measured again.

    Source

    TextBlockLayoutDropsArrangeAlignment

    TextBlockLayoutDropsArrangeAlignment
    

    TextBlock::arrange_override: a layout was dropped because the alignment of the arrange is not the one it was created with.

    Source

    TextBlockLayoutDropsArrangeConstraint

    TextBlockLayoutDropsArrangeConstraint
    

    TextBlock::arrange_override: a layout was dropped for the constraint of the arrange.

    Source

    TextBlockLayoutsCreatedByMeasure

    TextBlockLayoutsCreatedByMeasure
    

    TextBlock::measure_override: the measure created the layout.

    Source

    TextBlockLayoutsCreatedByArrange

    TextBlockLayoutsCreatedByArrange
    

    TextBlock::arrange_override: the arrange created the layout.

    Source

    ContainersRecycled

    ContainersRecycled
    

    VirtualizingStackPanel::recycle_element: a container left the viewport, was cleared and went to the recycle pool.

    Source

    ContainersReused

    ContainersReused
    

    VirtualizingStackPanel::get_recycled_element: a container of the pool was prepared for another item.

    Source

    ContainersCreated

    ContainersCreated
    

    VirtualizingStackPanel::create_element: a container was created.

    Source

    ContentPresenterChildrenReplaced

    ContentPresenterChildrenReplaced
    

    ContentPresenter::update_child_with: the child of a content presenter was replaced by another control or removed.

    Source

    MeasuresExecuted

    MeasuresExecuted
    

    Layoutable::measure: the measure of an element ran (its result was not the cached one).

    Source

    ArrangesExecuted

    ArrangesExecuted
    

    Layoutable::arrange: the arrange of an element ran.

    Source

    RoutedEventRoutesSkipped

    RoutedEventRoutesSkipped
    

    Interactive::build_event_route: a routed event was raised that has no class handler and no instance handler on the thread, so its route was left empty without walking the ancestors.

    Source

    LayoutPassRounds

    LayoutPassRounds
    

    LayoutManager::inner_layout_pass: a round of measure and arrange passes.

    Source

    LayoutMeasureInvalidatedInPass

    LayoutMeasureInvalidatedInPass
    

    LayoutManager::invalidate_measure: the measure of an element was invalidated while a layout pass ran (what makes a pass take another round).

    Source

    VisualsRecorded

    VisualsRecorded
    

    CompositingRenderer::update_core: the drawing of a visual was recorded.

    Source

    VisualsRecordedUnchanged

    VisualsRecordedUnchanged
    

    CompositingRenderer::update_core: a recorded drawing was the one the visual had, and was not sent again.

    Source

    VisualsRecordedInPlace

    VisualsRecordedInPlace
    

    CompositingRenderer::update_core: a recorded drawing was given to the render data the visual had, whose server-side object was kept.

    Source

    VisualsRecordedAsItems

    VisualsRecordedAsItems
    

    CompositingRenderer::update_core: the drawing of a visual without a composition visual was recorded as an item of the composition visual above (desktop-performance.md, section 9.42).

    Source

    CompositionVisualsCreated

    CompositionVisualsCreated
    

    Visual::attach_to_compositor_core: a composition visual was created for a visual that entered a visual tree.

    Source

    CompositionVisualsKept

    CompositionVisualsKept
    

    Visual::attach_to_compositor_core: a visual that entered a visual tree rejoined with the composition visual it had when it left one (desktop-performance.md, section 9.32).

    Source

    DrawingItemsKept

    DrawingItemsKept
    

    Visual::on_attached_to_visual_tree: a visual that entered a visual tree is shown again by the drawing item it had when it left one (desktop-performance.md, section 9.42).

    Source

    CompositionChildrenListed

    CompositionChildrenListed
    

    Visual::synchronize_composition_child_visuals: the child composition visuals and the items of the composition visual of a visual with something below it were listed from the visual tree (desktop-performance.md, section 9.42).

    Source

    CompositionBatchesCommitted

    CompositionBatchesCommitted
    

    Compositor::commit: a batch of changes was sent to the render thread.

    Source

    CompositionBatchObjects

    CompositionBatchObjects
    

    Compositor::commit: the entries of the object stream of the batches (a server object, a marker, a handle that is sent as it is).

    Source

    CompositionBatchValueBytes

    CompositionBatchValueBytes
    

    Compositor::commit: the bytes of the value stream of the batches.

    Source

    UiRenderPasses

    UiRenderPasses
    

    MediaContext::render: a render pass of the UI thread (callbacks, layout, commit).

    Source

    RenderFramesDrawn

    RenderFramesDrawn
    

    ServerCompositionTarget::render_frame: a frame was drawn.

    Source

    RenderDirtyBoundsPixels

    RenderDirtyBoundsPixels
    

    ServerCompositionTarget::render_frame: the pixels of the bounds of the dirty region.

    Source

    RenderTargetPixels

    RenderTargetPixels
    

    ServerCompositionTarget::render_frame: the pixels of the target.

    Source

    RenderUpdateVisualsVisited

    RenderUpdateVisualsVisited
    

    The update pass (UpdateContext::pre_subgraph): a visual was visited.

    Source

    RenderVisualsDirty

    RenderVisualsDirty
    

    The update pass (UpdateContext::post_subgraph): a visual was dirty for render.

    Source

    RenderDirtyRectsAdded

    RenderDirtyRectsAdded
    

    The update pass (UpdateContext::add_to_dirty_region): a rectangle was added to the dirty region.

    Source

    RenderVisualsVisited

    RenderVisualsVisited
    

    The render walk (ServerCompositionVisual::render): a visual was visited.

    Source

    RenderVisualsRendered

    RenderVisualsRendered
    

    The render walk: a visual was drawn (it meets the clip and the dirty region).

    Source

    RenderVisualTransformsSet

    RenderVisualTransformsSet
    

    The render walk: a visual with its own transform set the transform of the canvas.

    Source

    RenderCanvasTransformsApplied

    RenderCanvasTransformsApplied
    

    The drawing context of the backend: a transform of the context reached the canvas (a transform that is replaced before the canvas is used does not).

    Source

    RenderVisualClipsPushed

    RenderVisualClipsPushed
    

    The render walk: a visual pushed its clip to bounds.

    Source

    RenderItemsDrawn

    RenderItemsDrawn
    

    The render walk: a drawing item of a visual was drawn (section 9.42).

    Source

    RenderVisualOpacitiesPushed

    RenderVisualOpacitiesPushed
    

    The render walk: a visual pushed its opacity.

    Source

    RenderCachedVisualsDrawn

    RenderCachedVisualsDrawn
    

    The render walk: a visual was drawn from its bitmap cache.

    Source

    RenderLinesDrawn

    RenderLinesDrawn
    

    The replay of a drawing (RenderDataStreamReplay): a line.

    Source

    RenderRectanglesDrawn

    RenderRectanglesDrawn
    

    The replay of a drawing: a rectangle.

    Source

    RenderEllipsesDrawn

    RenderEllipsesDrawn
    

    The replay of a drawing: an ellipse.

    Source

    RenderGeometriesDrawn

    RenderGeometriesDrawn
    

    The replay of a drawing: a geometry.

    Source

    RenderGlyphRunsDrawn

    RenderGlyphRunsDrawn
    

    The replay of a drawing: a glyph run.

    Source

    RenderGlyphsDrawn

    RenderGlyphsDrawn
    

    The drawing context of the backend: the glyphs of the glyph runs drawn.

    Source

    RenderGlyphRunsFirstDrawn

    RenderGlyphRunsFirstDrawn
    

    The drawing context of the backend: a glyph run was drawn for the first time, from its glyphs and without a retained blob.

    Source

    RenderBitmapsDrawn

    RenderBitmapsDrawn
    

    The replay of a drawing: a bitmap.

    Source

    RenderClipsPushed

    RenderClipsPushed
    

    The replay of a drawing: a clip was pushed.

    Source

    RenderGeometryClipsPushed

    RenderGeometryClipsPushed
    

    The replay of a drawing: a geometry clip was pushed.

    Source

    RenderLayersPushed

    RenderLayersPushed
    

    The replay of a drawing: an opacity, a layer, an opacity mask or an effect was pushed.

    Source

    RenderTransformsPushed

    RenderTransformsPushed
    

    The replay of a drawing: a transform was pushed.

    Source

    SkiaLayersBeganToPipeline

    SkiaLayersBeganToPipeline
    

    PipelinedLayer::begin_frame: a layer that drew its frames directly began to pipeline them.

    Source

    SkiaFramesPipelined

    SkiaFramesPipelined
    

    PipelinedLayer::finish_frame: a frame was handed to the threads of the layer.

    Source

    SkiaBandsMoved

    SkiaBandsMoved
    

    PipelinedLayer::finish_frame: the bands of the layer were moved to rows of equal cost.

    Source

    SkiaPipelinedFramesPlayedDirectly

    SkiaPipelinedFramesPlayedDirectly
    

    PipelinedLayer::finish_frame: a recorded frame was played on the recorder of the context (it had a draw only that recorder draws, or the threads were not there).

    Source

    SkiaPipelinedLayerReadsInFrames

    SkiaPipelinedLayerReadsInFrames
    

    PipelinedLayerSurface::surface: the layer was read while one of its frames was drawn.

    Source

    ALL

    const ALL: &'static [PerfCounter]
    

    Every counter, in the order of the report.

    Source

    name

    const fn name(self: Self) -> &'static str
    

    The name of the counter in the report.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.