1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _KERNEL_SYSTEM_PROFILER_H 6 #define _KERNEL_SYSTEM_PROFILER_H 7 8 #include <sys/cdefs.h> 9 10 #include <OS.h> 11 12 13 struct system_profiler_parameters; 14 15 16 __BEGIN_DECLS 17 18 status_t start_system_profiler(size_t areaSize, uint32 stackDepth, 19 bigtime_t interval); 20 void stop_system_profiler(); 21 22 status_t _user_system_profiler_start( 23 struct system_profiler_parameters* parameters); 24 status_t _user_system_profiler_next_buffer(size_t bytesRead, 25 uint64* _droppedEvents); 26 status_t _user_system_profiler_stop(); 27 status_t _user_system_profiler_recorded( 28 struct system_profiler_parameters* parameters); 29 30 __END_DECLS 31 32 33 #endif /* _KERNEL_SYSTEM_PROFILER_H */ 34