سؤال

I am experimenting in using mmap to optimize certain parts of a program. In the end, I'd like to have statistics about how much was read and written to disk by a particular mmap call. Is there any way to get I/O statistics for this? (I'm using C++, and I'd like this to work cross-platform.)

هل كانت مفيدة؟

المحلول

It appears that the answer is "no". Different operating systems operate mmap and its related system calls in different ways and there is no defined interface for querying such statistics at such a fine-grained level.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top