2009-04-12 02:20:51 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _KERNEL_SYSTEM_PROFILER_H
|
|
|
|
#define _KERNEL_SYSTEM_PROFILER_H
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
|
|
|
|
|
2009-04-18 21:35:28 +04:00
|
|
|
struct system_profiler_parameters;
|
|
|
|
|
|
|
|
|
2009-04-12 02:20:51 +04:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2009-07-21 16:09:15 +04:00
|
|
|
status_t start_system_profiler(size_t areaSize, uint32 stackDepth,
|
|
|
|
bigtime_t interval);
|
2009-07-17 20:21:06 +04:00
|
|
|
void stop_system_profiler();
|
|
|
|
|
2009-04-18 21:35:28 +04:00
|
|
|
status_t _user_system_profiler_start(
|
|
|
|
struct system_profiler_parameters* parameters);
|
2009-04-23 17:47:52 +04:00
|
|
|
status_t _user_system_profiler_next_buffer(size_t bytesRead,
|
|
|
|
uint64* _droppedEvents);
|
2009-04-12 02:20:51 +04:00
|
|
|
status_t _user_system_profiler_stop();
|
2009-07-17 20:21:06 +04:00
|
|
|
status_t _user_system_profiler_recorded(
|
|
|
|
struct system_profiler_parameters* parameters);
|
2009-04-12 02:20:51 +04:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _KERNEL_SYSTEM_PROFILER_H */
|