Skip to content

How to log an earlier captured stacktrace? #1990

Answered by brianrob
rauhs asked this question in Q&A
Discussion options

You must be logged in to vote

Now I understand - you're right, there isn't a good way to do this with just ETW because the stack that you want has to be captured before ETW tracing starts, and ETW is the thing that would capture the stack.

That said, if what you're really after is PerfView showing the stacks in the stack viewer, this is possible. What you'd do is capture the stack as you do today, and emit it into your own event. Then, you can implement a PerfView plugin that takes your events and builds a StackSource. You then surface that StackSource through your plugin in your own view.

This would give you the same type of behavior as the AnyStacks view. If you're just talking about one stack, this might not be wor…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brianrob
Comment options

Answer selected by rauhs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants