There are several ways to get this information in OS X. If you are satisfied with viewing the copy-write information from the command line, you can use the tool vm_statat intervals. For example, it vm_stat 0.5will print full statistics twice per second. One of the columns is the number of copy-write errors.
, - , "", OS X. , , , VM, . . -, , .
, , ( ) API VM. , ββ vm_statistics, host_statistics. , :
mach_msg_type_number_t count = HOST_VM_INFO_COUNT;
vm_statistics_data_t vmstats;
kern_return_t host_statistics(mach_host_self(), HOST_VM_INFO, (host_info_t) &vmstats, &count);
vmstats , cow_faults, , copy-on-write. /usr/include/mach/vm_*, .