Lixie-Labs / Emotiscope

Let your eyes enjoy the music too ✨ Extremely low-latency audio processing lets LEDs perfectly synchronize to your music's notation and tempo.
https://emotiscope.rocks/
GNU General Public License v3.0
31 stars 6 forks source link

Clean up printing so that FPS, connected clients, CPU usage, etc. all print at o... #16

Closed github-actions[bot] closed 7 months ago

github-actions[bot] commented 7 months ago

https://github.com/connornishijima/Emotiscope/blob/862f99a34b3efacd21fbd96c199321b2efa51b0c/src/profiler.h#L113


}

void print_profiled_function_hits() {
    // TODO: Clean up printing so that FPS, connected clients, CPU usage, etc. all print at once
    printf("--------------------------------\n");
    printf("CPU: %f GPU: %f (FPS)\n", FPS_CPU, FPS_GPU);

    #ifdef PROFILER_ENABLED
    for (uint16_t i = 0; i < num_profiled_functions; i++) {
        if (PROFILER_HITS == true) {
            printf("HITS: %lu \t %s\n", profiler_functions[i].hits, profiler_functions[i].name);