A
A
AlexSofar2020-09-19 12:05:48
C++ / C#
AlexSofar, 2020-09-19 12:05:48

How to find out the speed of writing and reading files that a process uses?

I need to calculate the write / read speed (specific file). One process can use multiple file descriptors. But I can only calculate the overall read speed using the PerformanceCounter class . How do I split this speed as shown in the screenshot. I know about winapi and about PerformanceCounter too . I would just like to narrow the circle of search a little, there is no time to study everything in a row. Which function to use from winapi or if there are higher level functions like PerformanceCounter ? If it is not clear, write to clarify the question. Thank you in advance.

5f65c898c8941536050506.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2020-09-19
@rPman

make periodic requests to WMI
https://docs.microsoft.com/en-us/windows/win32/wmi...
watch performance data provider
the first link from google is an example , not quite right, but I think to dig through the documentation and finish it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question