History log of /haiku/src/system/kernel/scheduler/scheduler_profiler.h
Revision Date Author Comments
# 0269dd28 16-Jan-2014 Pawel Dziepak <pdziepak@quarnos.org>

Revert "scheduler: SCHEDULER_EXIT_FUNCTION() is not needed"

This reverts commit 667617ad043a4587d8d366d5192d9ad291cfa37a.

Scheduler profiler uses CPU local data to store function information, hence
arch_thread_context_switch() usually is not a problem. However, when
we switch to a new thread we end up scheduler_new_thread_entry() instead
of scheduler_reschedule() what may corrupt data collected by the profiler.


# 9e99bf60 03-Jan-2014 Pawel Dziepak <pdziepak@quarnos.org>

scheduler: SCHEDULER_EXIT_FUNCTION() is not needed


# 712f37e1 28-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

scheduler: profiler: Use nanosecond as a main time unit


# f68a4860 28-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

scheduler: Ignore time used by the profiler implementation


# 96dcc73b 26-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

scheduler: Add scheduler profiler

A bit hackish implementation of a profiler for the scheduler.
SCHEDULER_ENTER_FUNCTION at the begining of each function aren't nice and
usage of __PRETTY_FUNCTION__ isn't any better (both gcc and clang support
it though), but it was quick to implement and doesn't lose information
on inlined functions. It's just a tool, not an integral part of the kernal
anyway.


# 0269dd284e334fef121a93547cf2a81e065109bb 16-Jan-2014 Pawel Dziepak <pdziepak@quarnos.org>

Revert "scheduler: SCHEDULER_EXIT_FUNCTION() is not needed"

This reverts commit 667617ad043a4587d8d366d5192d9ad291cfa37a.

Scheduler profiler uses CPU local data to store function information, hence
arch_thread_context_switch() usually is not a problem. However, when
we switch to a new thread we end up scheduler_new_thread_entry() instead
of scheduler_reschedule() what may corrupt data collected by the profiler.


# 9e99bf6085a30c0fdb30234af1924007e6033494 03-Jan-2014 Pawel Dziepak <pdziepak@quarnos.org>

scheduler: SCHEDULER_EXIT_FUNCTION() is not needed


# 712f37e19e2d0e75c7cc28ffc226b3a62b955ada 28-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

scheduler: profiler: Use nanosecond as a main time unit


# f68a486001635e28f4542780bfeb685cfa4371ad 28-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

scheduler: Ignore time used by the profiler implementation


# 96dcc73b39cc68a59c276a35690f8af1886214ef 26-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

scheduler: Add scheduler profiler

A bit hackish implementation of a profiler for the scheduler.
SCHEDULER_ENTER_FUNCTION at the begining of each function aren't nice and
usage of __PRETTY_FUNCTION__ isn't any better (both gcc and clang support
it though), but it was quick to implement and doesn't lose information
on inlined functions. It's just a tool, not an integral part of the kernal
anyway.