ANTS Performance Profiler - 7.4

ANTS Performance Profiler

Profiling File I/O - ANTS Performance Profiler

You can use ANTS Performance Profiler 7.4 Professional to profile when the application that you are profiling reads from discs or writes to discs (including network drives).

Note that you can only profile File I/O on Windows Vista or later, or Microsoft Server 2008.

Setting up File I/O profiling

Before profiling File I/O, we recommend that you check for performance issues in your code (and any third-party code).

To enable File I/O profiling, set up the profiler in the same way that you would configure the settings for performance profiling. Ensure that Record file I/O performance is selected.

While profiling in Performance view, set the Tree View Display Options to show Wall-clock time, because CPU time does not include time spent blocked waiting for File I/O. When you have identified a slow line of code, which involves a reading from or writing to a disc, profile File I/O.

APP_fileIO_settings

Viewing File I/O results while profiling

  1. Drag to select the portion of the timeline that you are interested in.
  2. Click File I/O.

    APP_io_whileprofiling1a

  3. Note that the timeline is not automatically updated while profiling File I/O. To display queries performed since you switched to File I/O view, click Refresh.

    APP_io_whileprofiling3

Viewing File I/O results after profiling

If profiling is not currently in progress, click File I/O.

Linking back to your code

To find which of your code's methods caused File I/O to occur:

  1. Select the time when the I/O occurred on the timeline. Include some time just before the I/O because the method which caused the I/O will be called before the I/O takes place.
  2. Switch back to Performance view.

    APP_io_code1a

  3. Under Tree View Display Options, select Methods with source.
  4. In the tree view, the method which caused the File I/O should be found near the highlighted method.

    APP_io_code2a

    Use the line-level timings to look for code that could be optimized.

Was this article helpful?

Search support
Forums

ANTS Performance Profiler

all products