Skip to content

Conversation

radekdoulik
Copy link
Member

Measure browser app start times, 2 measurements implemented.

First to measure till the JS window.pageshow event, second to measure
time when we reach managed C# code.

Example ouput:

| measurement | time |
|-:|-:|
|                    AppStart, Page show |   108.1400ms |
|                AppStart, Reach managed |   240.2174ms |

Measure browser app start times, 2 measurements implemented.

First to measure till the JS window.pageshow event, second to measure
time when we reach managed C# code.

Example ouput:

    | measurement | time |
    |-:|-:|
    |                    AppStart, Page show |   108.1400ms |
    |                AppStart, Reach managed |   240.2174ms |
@ghost
Copy link

ghost commented Nov 11, 2021

Tagging subscribers to this area:
See info in area-owners.md if you want to be subscribed.

Issue Details

Measure browser app start times, 2 measurements implemented.

First to measure till the JS window.pageshow event, second to measure
time when we reach managed C# code.

Example ouput:

| measurement | time |
|-:|-:|
|                    AppStart, Page show |   108.1400ms |
|                AppStart, Reach managed |   240.2174ms |
Author: radekdoulik
Assignees: -
Labels:

area-VM-meta-mono

Milestone: -

{
RunStep();
if (HasRunStepAsync)
await RunStepAsync();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the async continuation is probably executed from setTimer(... , 0) so, if there is work in that scheduler, it may impact measurement. But compared to whole emscripten startup, probably not big problem.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I think there should not be much else happening at that time, besides things which are part of the startup.

Not sure whether we can improve that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants