Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm-ep] Minimal diagnostic tracing configuration and sample #69158

Merged
merged 38 commits into from
May 19, 2022

Commits on May 10, 2022

  1. Configuration menu
    Copy the full SHA
    8166db7 View commit details
    Browse the repository at this point in the history
  2. Disable Thread.StartInternal icall if DISABLE_WASM_USER_THREADS

    if threading is enabled for the runtime internally, but disabled for
    user code, throw PNSE
    lambdageek committed May 10, 2022
    Configuration menu
    Copy the full SHA
    a4dd0a8 View commit details
    Browse the repository at this point in the history
  3. add an eventpipe sample

    lambdageek committed May 10, 2022
    Configuration menu
    Copy the full SHA
    3f6af6f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cc7162f View commit details
    Browse the repository at this point in the history
  5. [samples/wasm-eventpipe] make an async task sample

    change the sample to do some work asynchronously using setTimeout
    instead of blocking
    lambdageek committed May 10, 2022
    Configuration menu
    Copy the full SHA
    f269cee View commit details
    Browse the repository at this point in the history
  6. [wasm] Add MONO.diagnostics interface

    Binds enable, start, disable methods defaulting to non-streaming FILE mode
    lambdageek committed May 10, 2022
    Configuration menu
    Copy the full SHA
    18f73b9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    75d33cb View commit details
    Browse the repository at this point in the history
  8. fix whitespace and nits

    lambdageek committed May 10, 2022
    Configuration menu
    Copy the full SHA
    327502d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fafeced View commit details
    Browse the repository at this point in the history
  10. more whitespace

    lambdageek committed May 10, 2022
    Configuration menu
    Copy the full SHA
    252d06a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    8b54aab View commit details
    Browse the repository at this point in the history

Commits on May 11, 2022

  1. Configuration menu
    Copy the full SHA
    e2e1b66 View commit details
    Browse the repository at this point in the history
  2. more whitespace

    lambdageek committed May 11, 2022
    Configuration menu
    Copy the full SHA
    ded3aeb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    46c1a7c View commit details
    Browse the repository at this point in the history
  4. add EventPipeSession.getTraceBlob and EventPipeSession.getTraceDataURI

    two ways of retreiving the collected traces instead of exposing the
    emscripten VFS directly.
    
    Probably the Blob one is enough.  Is there any reason to also provide
    a data URI?
    
    update the sample to use URL.createObjectURL (session.getTraceBlob())
    to create the download link
    lambdageek committed May 11, 2022
    Configuration menu
    Copy the full SHA
    c29915d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8287396 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a7bd41b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    be8d199 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    63190bd View commit details
    Browse the repository at this point in the history
  9. fix debug output

    lambdageek committed May 11, 2022
    Configuration menu
    Copy the full SHA
    4c50aa6 View commit details
    Browse the repository at this point in the history
  10. fix endianness issue

    lambdageek committed May 11, 2022
    Configuration menu
    Copy the full SHA
    a67ecd4 View commit details
    Browse the repository at this point in the history
  11. Use stack allocation for temporaries

    Expose the emscripten stack allocation API
    lambdageek committed May 11, 2022
    Configuration menu
    Copy the full SHA
    f0577f4 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2022

  1. Use 32-bit EventPipe session ID on WASM

    64 bit integers are awkward to work with in JavaScript.
    
    The EventPipe session ID is derived from a pointer address, so even
    though it is nominally a 64-bit value, in practice the top bits are
    zero.
    
    Use a 32-bit int to represent the session ID on the javascript side
    and convert to 64-bit in C when calling down to the EventPipe APIs
    lambdageek committed May 12, 2022
    Configuration menu
    Copy the full SHA
    99f2ddf View commit details
    Browse the repository at this point in the history
  2. Make the sample do more work in managed

    give the sample profiler some non-empty samples to collect
    lambdageek committed May 12, 2022
    Configuration menu
    Copy the full SHA
    cdf8909 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2022

  1. Configuration menu
    Copy the full SHA
    9c70c5c View commit details
    Browse the repository at this point in the history
  2. fix option description

    lambdageek committed May 16, 2022
    Configuration menu
    Copy the full SHA
    5af5b80 View commit details
    Browse the repository at this point in the history
  3. simplify VFS .nettrace file naming

    Just use consecutive integers to uniquify the session traces.  Dont'
    need a fancy timestamp in the VFS (which would also not be unique if
    you create sessions below the timestamp resolution)
    lambdageek committed May 16, 2022
    Configuration menu
    Copy the full SHA
    8fcb319 View commit details
    Browse the repository at this point in the history
  4. Add overloads to memory.withStackAlloc to avoid creating closures

    Pass up to 7 additional arguments to the callback function
    lambdageek committed May 16, 2022
    Configuration menu
    Copy the full SHA
    a3d681c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    173081c View commit details
    Browse the repository at this point in the history
  6. move createEventPipeSession callback to a function

    ensures the closure is created once
    lambdageek committed May 16, 2022
    Configuration menu
    Copy the full SHA
    f07daea View commit details
    Browse the repository at this point in the history

Commits on May 18, 2022

  1. Configuration menu
    Copy the full SHA
    61dbd2f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    886df1b View commit details
    Browse the repository at this point in the history
  3. fix whitespace

    lambdageek committed May 18, 2022
    Configuration menu
    Copy the full SHA
    19f9659 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c16d22c View commit details
    Browse the repository at this point in the history
  5. fix whitespace

    lambdageek committed May 18, 2022
    Configuration menu
    Copy the full SHA
    dc1dbad View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    82ba6c4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aed3660 View commit details
    Browse the repository at this point in the history
  8. cosmetic changes to sample

    lambdageek committed May 18, 2022
    Configuration menu
    Copy the full SHA
    0a7381d View commit details
    Browse the repository at this point in the history