Spike profiler

This commit is contained in:
Martin Donlon
2022-07-14 11:53:51 -07:00
parent f5f7616f57
commit cebd306abd
9 changed files with 241 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
#include "input.h"
#include "fpga_io.h"
#include "osd.h"
#include "profiling.h"
static cothread_t co_scheduler = nullptr;
static cothread_t co_poll = nullptr;
@@ -26,8 +27,11 @@ static void scheduler_co_poll(void)
{
scheduler_wait_fpga_ready();
user_io_poll();
input_poll(0);
{
SPIKE_SCOPE("co_poll", 1000);
user_io_poll();
input_poll(0);
}
scheduler_yield();
}
@@ -37,8 +41,11 @@ static void scheduler_co_ui(void)
{
for (;;)
{
HandleUI();
OsdUpdate();
{
SPIKE_SCOPE("co_ui", 1000);
HandleUI();
OsdUpdate();
}
scheduler_yield();
}