Click here to Skip to main content
12,700,965 members (31,285 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


1 bookmarked

How to Check How Many Writes Are Done While You Build

, 10 May 2011 Ms-PL
Rate this:
Please Sign up or sign in to vote.
How you can measure how many read and writes (in bytes) your build takes.

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.


Step 2: Setup a filter on your build process

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


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


Step 3: Run your build process

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


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

Step 4: Get the results

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


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.


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.


This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


About the Author

Arik Poznanski
Software Developer (Senior) Verint
Israel Israel
Arik Poznanski is a senior software developer at Verint. He completed two B.Sc. degrees in Mathematics & Computer Science, summa cum laude, from the Technion in Israel.

Arik has extensive knowledge and experience in many Microsoft technologies, including .NET with C#, WPF, Silverlight, WinForms, Interop, COM/ATL programming, C++ Win32 programming and reverse engineering (assembly, IL).

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 10 May 2011
Article Copyright 2011 by Arik Poznanski
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid