DCSIMG
How to Check How Many Writes Are Done While You Build? - Arik Poznanski's Blog

Arik Poznanski's Blog

It CAN be done with .NET

News

MVP

MCC

CodeProject MVP

MCPD

MCTS

Subscribe to my blog by email

Arik Poznanski LinkedIn Profile

Email: arik.com at gmail dot com
or, use this form

Locations of visitors to this page


Sela Group

Sela Canada

DZone MVB

Links

Official Blogs

WPF / SL Blogs

Developers Blogs

How to Check How Many Writes Are Done While You Build?

In the following post I’ll show you how you can measure how many read and writes (in bytes) your build takes. This may prove useful since the amount of writes can have a tremendous effect on the build total time. More on how to shorten your build time in a future post.

Step 1: Download Process Monitor

The key for measuring the build read and writes is to download the great tool by Sysinternals, Process Monitor.

Process Monitor is a tool which monitors all the processes in your system for several activities, like: file-access, registry, etc. It has rich support for filtering and summarizing the information.

image

Step 2: Setup a filter on your build process

Select the “Filter” menu and then “Filter…” menu item.
Now add a new filter with “Process Name” is “devenv.exe”, or “msbuild.exe”, depending on how you build your project.

image

Also disable all activities but the “file system” activity, since we want to focus on these alone.

image

Step 3: Run your build process

Clear the captured data from the process monitor to get a clean screen.

image

Now invoke your build process with your favorite tool: Visual Studio or msbuild.

Step 4: Get the results

Select the “Tools” menu and then “File Summary…” menu item.

image

Note: some file names were blacked to protect the client’s properties.

Step 5: Check by folder

Present the file summary by folders to get a better understanding on which folders you get most of the writes.

image

This is it. Here you can already see exactly how many read and writes you are doing and also how much time was invested in those writes (check the File Time column).

In a future post I’ll cover how you can decrease build time using this information.

That’s it for now,
Arik Poznanski.

Comments

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# May 10, 2011 2:00 PM

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

# May 10, 2011 2:00 PM

Arik Poznanski's Blog said:

Recently I got involved in a big project where we had a single solution with approximately 100 projects

# May 17, 2011 9:20 AM

How to Check How Many Writes Are Done While... | .NET and Performance | Syngu said:

Pingback from  How to Check How Many Writes Are Done While... | .NET and Performance | Syngu

# July 13, 2011 3:02 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: