You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context
I'm adding profiling support to an application by emitting ETW events that represent logical function calls.
Currently, after i capture an ETL trace i use a tool to convert it to json for use on speedscope.app, but this produces jsons up to 300MB which does not feel optimal.
The problem
I would like to use something like perfview or Windows Performance Analyzer directly, so i looked into the ETW activity pattern which seems to be meant for this kind of use case, however there is not much documentation.
I tried to follow this reference from ms docs, from what i understand this event pattern should allow perfview to group activities and plot them in a hierarchy view.
Several stackoverflow questions point to the fact that this should be possible, however i couldn't find any working reference code in C.
Context
I'm adding profiling support to an application by emitting ETW events that represent logical function calls.
Currently, after i capture an ETL trace i use a tool to convert it to json for use on speedscope.app, but this produces jsons up to 300MB which does not feel optimal.
The problem
I would like to use something like perfview or Windows Performance Analyzer directly, so i looked into the ETW activity pattern which seems to be meant for this kind of use case, however there is not much documentation.
I tried to follow this reference from ms docs, from what i understand this event pattern should allow perfview to group activities and plot them in a hierarchy view.
Several stackoverflow questions point to the fact that this should be possible, however i couldn't find any working reference code in C.
Repro
I tried writing the following code
You can build it from Visual Studio or just the command line tools with
cl Repro.c Advapi32.lib Ole32.lib
(i only tried x64 tools).Then I start an event collection like this:
And the events are collected properly:
However, when i try to open the stacks view for start-stop activities i get
Error: Could not find stack source Any Stacks (with StartStop Activities)
Questions
The text was updated successfully, but these errors were encountered: