Skip to content

Create TraceLog (ETLX) without writing to file #1829

@vaind

Description

@vaind

I have an EventPipe data capture as a MemoryStream.

I'm able to create an EventPipeEventSource albeit only via the private constructor by setting isStreaming=false (otherwise passing this to TraceLog for conversion fails), but let's not dwelve on this for now:

I'm then able to use TraceLog.CreateFromEventPipeEventSources()

However, I don't want to write the .etlx to a file only to read it again in order to work with the TraceLog instance. Instead, I'd like to initialize the TraceLog directly from the EventPipeEventSource, letting it do the conversion and ending up with a usable instance. Is this somehow possible with existing APIs? If not, what part would be reasonable to change to make this work?

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