Update tasks.c to reset total runtime

This commit is contained in:
chinglee-iot 2024-01-31 11:47:02 +08:00 committed by GitHub
parent 68d985ae0b
commit 591c865cfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8732,7 +8732,7 @@ void vTaskResetState( void )
for( xCoreID = 0; xCoreID < configNUMBER_OF_CORES; xCoreID++ )
{
ulTaskSwitchedInTime[ xCoreID ] = 0U;
ulTotalRunTime[ configNUMBER_OF_CORES ] = 0U;
ulTotalRunTime[ xCoreID ] = 0U;
}
}
#endif /* #if ( configGENERATE_RUN_TIME_STATS == 1 ) */