add benchmark to app. TODO: test benchmark.
This commit is contained in:
parent
6d3d07f60a
commit
f8dd05c006
|
@ -141,12 +141,12 @@ void *run_benchmark(void *args) {
|
|||
|
||||
pthread_t benchmark_task;
|
||||
static int embenchmark(void) {
|
||||
// pthread_attr_t attr;
|
||||
// attr.schedparam.sched_priority = 25;
|
||||
// attr.stacksize = 4096;
|
||||
pthread_attr_t attr;
|
||||
attr.schedparam.sched_priority = 25;
|
||||
attr.stacksize = 4096;
|
||||
|
||||
// PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
|
||||
run_benchmark(NULL);
|
||||
PrivTaskCreate(&benchmark_task, &attr, run_benchmark, NULL);
|
||||
// run_benchmark(NULL);
|
||||
return 0;
|
||||
}
|
||||
PRIV_SHELL_CMD_FUNCTION(embenchmark, benchmark, PRIV_SHELL_CMD_MAIN_ATTR);
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* See the Mulan PSL v2 for more details.
|
||||
*/
|
||||
|
||||
__STACKSIZE__ = 6144;
|
||||
__STACKSIZE__ = 4096;
|
||||
OUTPUT_ARCH( "riscv" )
|
||||
MEMORY
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue