Skip to content

Ability to track performance of tracking chain revalidation #1594

Open

Description

@lifeart

Inputs:

Angular devtools has ability to track change-detection performance:

https://blog.angular.io/introducing-angular-devtools-2d59ff4cf62f

image

Idea is:

Land similar DX for Ember.js developers users.

As mentioned in: https://discord.com/channels/480462759797063690/486243207072710656/844590207331729449

We should figure out most interesting/easy parts to implement.

Feature:

We could start with tracking chain revalidation logging at application level using builtin browser performance API.

Like a:

revalidate() {
    performance.mark(`revalidation-start-${epoch}`);
    glimmerInternals.revalidate();
    performance.mark(`revalidation-finished-${epoch}`);
}

using this markers we could collect time, spend on it.

Also, it will be great to have same marks per component revalidation, wondering could we have a special opcode for it, or it could be hooked somehow in current pipeline?

appreciate for any inputs or ideas on it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions