-#if CONFIG_EMBEDDED
- {
- /* print out early VM statistics */
- kern_return_t kr1;
- vm_statistics_data_t stat;
- mach_msg_type_number_t count;
-
- count = HOST_VM_INFO_COUNT;
- kr1 = host_statistics(host_self(),
- HOST_VM_INFO,
- (host_info_t)&stat,
- &count);
- kprintf("Mach Virtual Memory Statistics (page size of 4096) bytes\n"
- "Pages free:\t\t\t%u.\n"
- "Pages active:\t\t\t%u.\n"
- "Pages inactive:\t\t\t%u.\n"
- "Pages wired down:\t\t%u.\n"
- "\"Translation faults\":\t\t%u.\n"
- "Pages copy-on-write:\t\t%u.\n"
- "Pages zero filled:\t\t%u.\n"
- "Pages reactivated:\t\t%u.\n"
- "Pageins:\t\t\t%u.\n"
- "Pageouts:\t\t\t\%u.\n"
- "Object cache: %u hits of %u lookups (%d%% hit rate)\n",
-
- stat.free_count,
- stat.active_count,
- stat.inactive_count,
- stat.wire_count,
- stat.faults,
- stat.cow_faults,
- stat.zero_fill_count,
- stat.reactivations,
- stat.pageins,
- stat.pageouts,
- stat.hits,
- stat.lookups,
- (stat.hits == 0) ? 100 :
- ((stat.lookups * 100) / stat.hits));
- }
-#endif /* CONFIG_EMBEDDED */
-