microsoft / microsoft/perfview
Using ETWReloggerTraceEventSource to gather events just from a certain time start/stop doesn't include stacks
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 4.7k
- Forks
- 775
- Avg merge
- 5d 11h
- Merged PRs (30d)
- 9
Description
I wanted to use the relogger to gather all events that occur within a certain start/stop time in a trace and then write that to a new etl file. What I found is that the stacks are not included (ex: CPU stacks).
using (var relogger = new ETWReloggerTraceEventSource(inputFileName, splitFileName))
{
relogger.AllEvents += delegate (TraceEvent data)
{
if (data.TimeStampRelativeMSec >= startTimeMS && data.TimeStampRelativeMSec <= endTimeMS)
{
relogger.WriteEvent(data);
}
};
relogger.Process();
};
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ETWReloggerTraceEventSource usage shown in the issue and trace how relogger.WriteEvent handles events and their stacks during time filtering. Reproduce the reported case with CPU stacks, then verify that the newly written ETL retains those stacks while containing only events in the requested interval.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- operating-systems, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100