On Sun, 10 Oct 2004 20:54:59 +0200, Gert van der Kooij wrote:
[Process Explorer behavior]
I don't think this is true. Process Explorer always shows all
currently open files. As described within this thread previously WP
reads a file in memory and closes it after reading so this kind if
files will never be shown.
But if I debug a program and keep Process Explorer open I can see
every change in the used resources directly. When a file is closed it
is shown in red at the first refresh and removed from the list at the
next refresh. When another file is opened it is displayed in green at
the first refresh and 'normal' at the next refresh.
This also does work for any other resource in use by this process.
I know this. But it depends strongly on timing issues (what refresh
interval is selected; when do you look into the output of Process
Explorer). I didn't mention these possibilities *on purpose*. It is
of no avail to recommend an unsuitable program for a very special
system analysis. If you choose the refresh interval too long: a file
could have been opened and closed without Process Explorer is even
able to notice. If you choose it to short: you'll perhaps miss every
(color-)phase of the output. Sure, you can play a bit with 'Difference
Highlight Duration'. But that is mere cosmetic:
Process Explorer and FileMon use different approaches to get their
information. Process Explorer polls for changes while FileMon hooks
functions to *get informed*. To get this done, FileMon requires
Administrator privileges while Process Explorer can work on user
level.
You *can* use Process Explorer to find out which Process holds a
certain file open. This is one of the fields where Process Explorer
provides information 'quick and easy'. For in-depth file usage
analysis (what program accesses which files [and when]) you need
FileMon. Another good program for the latter approach is Steve
Millers Dependeny Walker in Profiling Mode:
http://www.dependencywalker.com
It would be great thou if Process Explorer could save all used
resources during the lifecycle of a process in a log.
Hm. I won't say that Mark Russinovich won't do something in future.
He has done a lot of things, most people didn't believe to ever
happen. But: ProcessExplorer shows *snapshots* of the system. It
is *no logging* program. That's why you are able to save current
state information, but no log. (Yet. ;-) )
BeAr