getting CSWITCH PROC_THREAD and DISPATHER information for a specific process RRS feed

  • Question

  • I know the process I wish to obtain performance related information on, therefore is it possible with xperf to create a trace that will only contain information for this one specific process ?
    Tuesday, February 26, 2013 10:28 PM

All replies

  • No. CSWITCH and related are all kernel flags. Since there is only one kernel which does write these events you need to post process them after capturing the data on your machine. At this level there is no process in isolation. For a context switch up to three different processes (OldProcess, NewProcess, ReadyingProcess) do interact with each other. From a technical perspective you are asking the wrong question.

    You want to profile only your process because you want to limit the amount of collected data? There is no easy way around this except to reconfigure xperf during your use case to collect the full info only during short periods of time which are of interest to you.


       Alois Kraus

    Wednesday, March 6, 2013 10:30 AM