work on profile visualiziation

This commit is contained in:
James Lambert 2023-12-16 19:19:24 -07:00
parent 7fbfcc72ff
commit f41a919452
3 changed files with 10 additions and 1 deletions

3
.gitignore vendored
View file

@ -26,4 +26,5 @@ skelatool64/*.zip*
src/controls/controller-data.h
log.txt
log.txt
log_images/

View file

@ -168,6 +168,10 @@ void profileTask(OSSched* scheduler, OSThread* currentThread, OSTask* task, u16*
#endif
}
// char message[32];
// sprintf(message, "step_%d", curr - (Gfx*)task->t.data_ptr);
// gdbSendImage(message, SCREEN_WD, SCREEN_HT, G_IM_FMT_RGBA, G_IM_SIZ_16b, framebuffer);
++curr;
}

View file

@ -203,6 +203,10 @@ function calculateAverage(batch) {
combinedCommands.sort((a, b) => b.elapsedTime - a.elapsedTime);
batch.combinedCommands = combinedCommands;
if (fs.existsSync(`log_images/step_${batch.index}.bmp`)) {
console.log(`log_images/step_${batch.index}.bmp`);
}
}
profileBatches.forEach(calculateAverage);