microsoft / microsoft/perfview

Using ETWReloggerTraceEventSource to gather events just from a certain time start/stop doesn't include stacks

Open
#1,678 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.