mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-17 19:13:03 +08:00
取消PKG_PERF_COUNTER_USING_THREAD_STATISTIC选项
This commit is contained in:
parent
0e55f3db74
commit
6325460df0
@ -5,10 +5,7 @@ import shutil
|
|||||||
src = ['perf_counter.c', 'os/perf_os_patch_rt_thread.c']
|
src = ['perf_counter.c', 'os/perf_os_patch_rt_thread.c']
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
path = [cwd]
|
path = [cwd]
|
||||||
CPPDEFINES = ['__PERF_COUNT_PLATFORM_SPECIFIC_HEADER__=<rtthread.h>', '__perf_counter_printf__=rt_kprintf']
|
CPPDEFINES = ['__PERF_COUNT_PLATFORM_SPECIFIC_HEADER__=<rtthread.h>', '__perf_counter_printf__=rt_kprintf', '__PERF_CNT_USE_RTOS__']
|
||||||
|
|
||||||
if GetDepend('PKG_PERF_COUNTER_USING_THREAD_STATISTIC'):
|
|
||||||
CPPDEFINES += ['__PERF_CNT_USE_RTOS__']
|
|
||||||
|
|
||||||
#delate unused files
|
#delate unused files
|
||||||
try:
|
try:
|
||||||
|
@ -80,12 +80,10 @@ task_cycle_info_t * get_rtos_task_cycle_info(void)
|
|||||||
|
|
||||||
void __perf_os_patch_init(void)
|
void __perf_os_patch_init(void)
|
||||||
{
|
{
|
||||||
#ifdef PKG_PERF_COUNTER_USING_THREAD_STATISTIC
|
#ifdef PKG_USING_PERF_COUNTER
|
||||||
rt_tick_sethook(user_code_insert_to_systick_handler);
|
rt_tick_sethook(user_code_insert_to_systick_handler);
|
||||||
#endif
|
#endif
|
||||||
#if !defined(PKG_USING_PERF_COUNTER) || (defined(PKG_PERF_COUNTER_USING_THREAD_STATISTIC))
|
|
||||||
rt_scheduler_sethook(__rt_thread_scheduler_hook);
|
rt_scheduler_sethook(__rt_thread_scheduler_hook);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PKG_USING_PERF_COUNTER
|
#ifdef PKG_USING_PERF_COUNTER
|
||||||
@ -93,7 +91,6 @@ void __ensure_systick_wrapper(void)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PKG_PERF_COUNTER_USING_THREAD_STATISTIC
|
|
||||||
#define DBG_TAG "perf_counter"
|
#define DBG_TAG "perf_counter"
|
||||||
#define DBG_LVL DBG_INFO
|
#define DBG_LVL DBG_INFO
|
||||||
#include <rtdbg.h>
|
#include <rtdbg.h>
|
||||||
@ -106,5 +103,4 @@ static int _perf_counter_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
INIT_PREV_EXPORT(_perf_counter_init);
|
INIT_PREV_EXPORT(_perf_counter_init);
|
||||||
#endif /* PKG_PERF_COUNTER_USING_THREAD_STATISTIC */
|
|
||||||
#endif /* PKG_USING_PERF_COUNTER */
|
#endif /* PKG_USING_PERF_COUNTER */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user