Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task manager: enhance debug prints #2054

Conversation

sapphire-arches
Copy link
Collaborator

Add min/avg/max stats to latency and duration.

@sapphire-arches
Copy link
Collaborator Author

Example output:

task_scheduler.cpp:309: Dumping task manager stats:
task_scheduler.cpp:315: Load: 38.30, Dur:    1.140/   4.725/   40.834 Latency:    0.184/   0.195/   0.751 N:    3664927, Task: audio  routine
task_scheduler.cpp:315: Load:  7.56, Dur:    3.810/   3.830/    8.131 Latency:    0.504/   0.506/   1.040 N:    1393232, Task: read encoders
task_scheduler.cpp:315: Load:  4.51, Dur:    0.750/   0.808/   60.636 Latency:    0.184/   0.190/   0.769 N:    3753947, Task: playback routine
task_scheduler.cpp:315: Load: 40.45, Dur:    0.630/   0.656/    4.740 Latency: -128861.881/   0.015/128861.910 N:   44548688, Task: load clusters
task_scheduler.cpp:315: Load:  0.90, Dur:    0.780/   0.909/    4.980 Latency:    1.004/   1.006/  50.027 N:     699457, Task: audio slow
task_scheduler.cpp:315: Load:  0.19, Dur:    0.840/   0.949/    2.220 Latency:    5.003/   5.007/  10.027 N:     141344, Task: buttons and pads
task_scheduler.cpp:315: Load:  0.16, Dur:    0.720/   0.769/    2.070 Latency:    5.003/   5.014/  10.022 N:     141344, Task: interpret encoders fast
task_scheduler.cpp:315: Load:  0.10, Dur:    0.720/   0.789/   79.808 Latency:   10.003/  10.009/  30.027 N:      70652, Task: pending UI
task_scheduler.cpp:315: Load:  0.19, Dur:    0.810/   0.910/    4.890 Latency:    5.003/   5.012/  10.029 N:     141333, Task: interpret encoders slow
task_scheduler.cpp:315: Load:  0.01, Dur:    0.600/   0.605/    0.780 Latency:  100.003/ 100.011/ 200.004 N:       7074, Task: audio file slow
task_scheduler.cpp:315: Load:  0.06, Dur:    0.600/   0.611/    0.750 Latency:   10.004/  10.007/ 100.004 N:      70536, Task: audio recorder slow
task_scheduler.cpp:315: Load:  0.93, Dur:    0.630/   0.942/    4.710 Latency:    1.003/   1.006/  20.027 N:     699725, Task: PIC flush
task_scheduler.cpp:315: Load:  0.08, Dur:    0.600/   0.628/    4.470 Latency:   10.003/  10.005/  20.029 N:      70722, Task: oled routine
task_scheduler.cpp:315: Load:  6.57, Dur:    0.600/   0.601/   25.023 Latency:    0.104/   0.108/  10.027 N:    6524476, Task: ui routine

Copy link
Contributor

Test Results

34 tests  ±0   34 ✅ ±0   0s ⏱️ ±0s
 6 suites ±0    0 💤 ±0 
 6 files   ±0    0 ❌ ±0 

Results for commit 2a678fd. ± Comparison against base commit 45b53d1.

@sapphire-arches sapphire-arches added this pull request to the merge queue May 30, 2024
Merged via the queue into SynthstromAudible:community with commit cb6abee May 30, 2024
6 checks passed
tastycode pushed a commit to tastycode/DelugeFirmware that referenced this pull request Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants