Skip to content

Add WASI hostcall tracing #9

@jeffcharles

Description

@jeffcharles

I think there would be value in adding a flag that displays the WASI hostcalls made as part of running a function. This could be used to as part of investigating why a function's latency has unexpectedly increased.

The wasi-common crate used by wasmtime has trace level log statements that contain the hostcalls made as well as their arguments and return values. This crate could expose a way to display those log messages on the console.

For example, when running wasmtime directly, I can set RUST_LOG=wasi_common=trace to see details about the WASI hostcalls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions