Google Answers Logo
View Question
 
Q: Number of bytes a process has written to hard disk ( No Answer,   2 Comments )
Question  
Subject: Number of bytes a process has written to hard disk
Category: Computers > Programming
Asked by: lordbogy-ga
List Price: $3.00
Posted: 30 Sep 2005 09:08 PDT
Expires: 15 Oct 2005 08:54 PDT
Question ID: 574649
How can I get the number of bytes a process, while it is running, has
written to the hard disk? (Windows, any programming language would be
OK, but preferably C++)

Clarification of Question by lordbogy-ga on 02 Oct 2005 00:27 PDT
The process I need to figure out how many bytes it wrote to disk could
be any running process (like explorer.exe, etc).
Answer  
There is no answer at this time.

Comments  
Subject: Re: Number of bytes a process has written to hard disk
From: bozo99-ga on 01 Oct 2005 13:25 PDT
 
You could have the program show this in shared memory available to all
other processes.

Or you could add up figures in individual write()entries in truss
output (after deciding which ones apply to disk).  This wouldn't even
need you to have the source for the program.

And you could use an OS known to have the above 2 features - not sure
if Windoes does.
Subject: Re: Number of bytes a process has written to hard disk
From: lordbogy-ga on 02 Oct 2005 00:26 PDT
 
Thank you for your response.

I don't have the source for the program, so I can't use the first
method you described. The process I need to figure out how many bytes
it wrote could be any process that is running (like explorer.exe).
Also, I don't think truss is available for Windows.

Is there another way I can do this? Maybe by injecting code into that
process, somehow.

Thank you.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy