With PROCESS_MEMORY_COUNTERS_EX
, I can find the peak pagefile (VM) size since the beginning of a process. Can I somehow get the peak pagefile size starting from some other point in time?
views:
81answers:
2
+1
A:
Have you tried this: PerfSetULongCounterValue? I have not given it a try myself but judging from the description This is a convenience function for setting raw counter data.
and from Process Object it might be what you are looking for. I see what you are using PROCESS_MEMORY_COUNTERS_EX()
but it is likely that in order to change counters you need to use directly Performance Counters Functions.
Anyway, this is just an idea to try. Also you can find this post useful Monitoring CPU and disk utilization of a single program.
skwllsp
2010-04-13 09:20:16
This function is for counter providers, but thanks anyway.
Lev
2010-04-13 10:48:17
So it is not suitable, is it? Is there any other function?
skwllsp
2010-04-13 11:01:37