Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

Using XPERF for profiling

Don_Burn_1Don_Burn_1 Member Posts: 4,311
Has anyone had any success in using XPERF for doing a profile ala
kernrate? I've tried following the various directions of Microsoft
(some of which produce "invalid option" type warning), and when I do get
it to appear to work, I cannot get the output.

So anyone got a good set of steps for this?


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

Comments

  • Doron_HolanDoron_Holan Member - All Emails Posts: 10,435
    Are you using xperf from the sdk?

    -----Original Message-----
    From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
    Sent: Thursday, March 25, 2010 1:08 PM
    To: Windows System Software Devs Interest List
    Subject: [ntdev] Using XPERF for profiling

    Has anyone had any success in using XPERF for doing a profile ala kernrate? I've tried following the various directions of Microsoft (some of which produce "invalid option" type warning), and when I do get it to appear to work, I cannot get the output.

    So anyone got a good set of steps for this?


    Don Burn (MVP, Windows DKD)
    Windows Filesystem and Driver Consulting
    Website: http://www.windrvr.com
    Blog: http://msmvps.com/blogs/WinDrvr





    ---
    NTDEV is sponsored by OSR

    For our schedule of WDF, WDM, debugging and other seminars visit:
    http://www.osr.com/seminars

    To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
    d
  • Scott_Noone_(OSR)Scott_Noone_(OSR) Administrator Posts: 3,135
    Hey, what timing! Wait for the next issue of The NT Insider :)

    Until then though have you tried:

    xperf -on Latency
    <do stuff>
    xperf -d profile.etl
    xperf profile.etl

    ?

    You can also add stack traces for the profiling events with:

    xperf -on Latency -stackwalk Profile
    <do stuff>
    xperf -d profile.etl
    xperf profile.etl


    -scott

    --
    Scott Noone
    Consulting Associate
    OSR Open Systems Resources, Inc.
    http://www.osronline.com

    "Don Burn" <xxxxx@acm.org> wrote in message news:xxxxx@ntdev...
    > Has anyone had any success in using XPERF for doing a profile ala
    > kernrate? I've tried following the various directions of Microsoft
    > (some of which produce "invalid option" type warning), and when I do get
    > it to appear to work, I cannot get the output.
    >
    > So anyone got a good set of steps for this?
    >
    >
    > Don Burn (MVP, Windows DKD)
    > Windows Filesystem and Driver Consulting
    > Website: http://www.windrvr.com
    > Blog: http://msmvps.com/blogs/WinDrvr
    >
    >
    >
    >
    >

    -scott
    OSR

  • Don_Burn_1Don_Burn_1 Member Posts: 4,311
    I've tried the Win7 SDK and the Windows Performance Toolkit.


    Don Burn (MVP, Windows DKD)
    Windows Filesystem and Driver Consulting
    Website: http://www.windrvr.com
    Blog: http://msmvps.com/blogs/WinDrvr




    > -----Original Message-----
    > From: Doron Holan [mailto:xxxxx@microsoft.com]
    > Posted At: Thursday, March 25, 2010 4:16 PM
    > Posted To: ntdev
    > Conversation: Using XPERF for profiling
    > Subject: RE: Using XPERF for profiling
    >
    > Are you using xperf from the sdk?
    >
    > -----Original Message-----
    > From: xxxxx@lists.osr.com [mailto:bounce-406230-
    > xxxxx@lists.osr.com] On Behalf Of Don Burn
    > Sent: Thursday, March 25, 2010 1:08 PM
    > To: Windows System Software Devs Interest List
    > Subject: [ntdev] Using XPERF for profiling
    >
    > Has anyone had any success in using XPERF for doing a profile ala
    kernrate?
    > I've tried following the various directions of Microsoft (some of
    which
    > produce "invalid option" type warning), and when I do get it to appear
    to
    > work, I cannot get the output.
    >
    > So anyone got a good set of steps for this?
    >
    >
    > Don Burn (MVP, Windows DKD)
    > Windows Filesystem and Driver Consulting
    > Website: http://www.windrvr.com
    > Blog: http://msmvps.com/blogs/WinDrvr
    >
    >
    >
    >
    >
    > ---
    > NTDEV is sponsored by OSR
    >
    > For our schedule of WDF, WDM, debugging and other seminars visit:
    > http://www.osr.com/seminars
    >
    > To unsubscribe, visit the List Server section of OSR Online at
    > http://www.osronline.com/page.cfm?name=ListServer
    >
    >
    >
    > __________ Information from ESET Smart Security, version of virus
    signature
    > database 4974 (20100325) __________
    >
    > The message was checked by ESET Smart Security.
    >
    > http://www.eset.com
    >
  • Don_Burn_1Don_Burn_1 Member Posts: 4,311
    Scott,

    That is a new one, I have not tried it (nor seen it in the examples
    from folks at Microsoft). When you do the xperf profile.etl what kind
    of data do you get? I've only gotten some rather dumb graphs with no
    useful data.


    Don Burn (MVP, Windows DKD)
    Windows Filesystem and Driver Consulting
    Website: http://www.windrvr.com
    Blog: http://msmvps.com/blogs/WinDrvr




    > -----Original Message-----
    > From: Scott Noone [mailto:xxxxx@osr.com]
    > Posted At: Thursday, March 25, 2010 4:19 PM
    > Posted To: ntdev
    > Conversation: Using XPERF for profiling
    > Subject: Re: Using XPERF for profiling
    >
    > Hey, what timing! Wait for the next issue of The NT Insider :)
    >
    > Until then though have you tried:
    >
    > xperf -on Latency
    > <do stuff>
    > xperf -d profile.etl
    > xperf profile.etl
    >
    > ?
    >
    > You can also add stack traces for the profiling events with:
    >
    > xperf -on Latency -stackwalk Profile
    > <do stuff>
    > xperf -d profile.etl
    > xperf profile.etl
    >
    >
    > -scott
    >
    > --
    > Scott Noone
    > Consulting Associate
    > OSR Open Systems Resources, Inc.
    > http://www.osronline.com
    >
    > "Don Burn" <xxxxx@acm.org> wrote in message news:xxxxx@ntdev...
    > > Has anyone had any success in using XPERF for doing a profile ala
    > > kernrate? I've tried following the various directions of Microsoft
    > > (some of which produce "invalid option" type warning), and when I do
    > > get it to appear to work, I cannot get the output.
    > >
    > > So anyone got a good set of steps for this?
    > >
    > >
    > > Don Burn (MVP, Windows DKD)
    > > Windows Filesystem and Driver Consulting
    > > Website: http://www.windrvr.com
    > > Blog: http://msmvps.com/blogs/WinDrvr
    > >
    > >
    > >
    > >
    > >
    >
    >
    > __________ Information from ESET Smart Security, version of virus
    signature
    > database 4974 (20100325) __________
    >
    > The message was checked by ESET Smart Security.
    >
    > http://www.eset.com
    >
  • Scott_Noone_(OSR)Scott_Noone_(OSR) Administrator Posts: 3,135
    The default view is a selection graphs of data that was collected (there's
    an arrow on the left hand side that will bring out a chooser so that you can
    add/remove graphs). If you right click one of the graphs and choose "Summary
    Table" you'll get the more detailed view with the sample data. Hovering over
    the data points also gives you information about that sample.

    You can also select a time period on a graph (left click + drag) and then
    bring up the summary table for that particular period.


    -scott


    --
    Scott Noone
    Consulting Associate
    OSR Open Systems Resources, Inc.
    http://www.osronline.com


    "Don Burn" <xxxxx@acm.org> wrote in message news:xxxxx@ntdev...
    > Scott,
    >
    > That is a new one, I have not tried it (nor seen it in the examples
    > from folks at Microsoft). When you do the xperf profile.etl what kind
    > of data do you get? I've only gotten some rather dumb graphs with no
    > useful data.
    >
    >
    > Don Burn (MVP, Windows DKD)
    > Windows Filesystem and Driver Consulting
    > Website: http://www.windrvr.com
    > Blog: http://msmvps.com/blogs/WinDrvr
    >
    >
    >
    >
    >> -----Original Message-----
    >> From: Scott Noone [mailto:xxxxx@osr.com]
    >> Posted At: Thursday, March 25, 2010 4:19 PM
    >> Posted To: ntdev
    >> Conversation: Using XPERF for profiling
    >> Subject: Re: Using XPERF for profiling
    >>
    >> Hey, what timing! Wait for the next issue of The NT Insider :)
    >>
    >> Until then though have you tried:
    >>
    >> xperf -on Latency
    >> <do stuff>
    >> xperf -d profile.etl
    >> xperf profile.etl
    >>
    >> ?
    >>
    >> You can also add stack traces for the profiling events with:
    >>
    >> xperf -on Latency -stackwalk Profile
    >> <do stuff>
    >> xperf -d profile.etl
    >> xperf profile.etl
    >>
    >>
    >> -scott
    >>
    >> --
    >> Scott Noone
    >> Consulting Associate
    >> OSR Open Systems Resources, Inc.
    >> http://www.osronline.com
    >>
    >> "Don Burn" <xxxxx@acm.org> wrote in message news:xxxxx@ntdev...
    >> > Has anyone had any success in using XPERF for doing a profile ala
    >> > kernrate? I've tried following the various directions of Microsoft
    >> > (some of which produce "invalid option" type warning), and when I do
    >> > get it to appear to work, I cannot get the output.
    >> >
    >> > So anyone got a good set of steps for this?
    >> >
    >> >
    >> > Don Burn (MVP, Windows DKD)
    >> > Windows Filesystem and Driver Consulting
    >> > Website: http://www.windrvr.com
    >> > Blog: http://msmvps.com/blogs/WinDrvr
    >> >
    >> >
    >> >
    >> >
    >> >
    >>
    >>
    >> __________ Information from ESET Smart Security, version of virus
    > signature
    >> database 4974 (20100325) __________
    >>
    >> The message was checked by ESET Smart Security.
    >>
    >> http://www.eset.com
    >>
    >
    >

    -scott
    OSR

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Developing Minifilters 29 July 2019 OSR Seminar Space
Writing WDF Drivers 23 Sept 2019 OSR Seminar Space
Kernel Debugging 21 Oct 2019 OSR Seminar Space
Internals & Software Drivers 18 Nov 2019 Dulles, VA