Skip to content

How are these hints going to be generated? #10

@eqrion

Description

@eqrion

I seem to recall that we expect these hints to be generated using some sort of profiling step (but can't find that easily, I might be wrong here).

Are we thinking that toolchains should modify the wasm code to collect extra information? Or is the expectation that wasm engines should offer a mode that collects this information?

One crazy idea would be to modify the JS-API so that there's a boolean collectCompilationHints on CompileOptions when compiling a module that opts into profiling, then a Instance.getCompilationHints() which grabs the profiling information seen so far.

If you enable this, you'd expect for that module to run slower for that session as it'd stay in a baseline tier while collecting hints.

This could then be used for web developers to be able to collect real profiling information by opting some small random percentage of users into collecting this information then aggregating it over time.

This could also be possible if toolchains are instrumenting their wasm code to collect this data, I'm just not sure if that's the plan.

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