Пример #1
0
 static void malloc_block_recorder(task_t task, void *context, unsigned type, vm_range_t *range, unsigned count) {
     Monitor *monitor = reinterpret_cast<Monitor*>(context);
     for (unsigned i = 0; i < count; i++, range++) {
         monitor->print("block");
         monitor->send_malloc_block_info((void*)range->address, range->size);
         monitor->print("\n");
     }
 }
Пример #2
0
void f(){
	static Monitor m;
	m.incident();
	m.print();
}