work on profile visualiziation
This commit is contained in:
parent
7fbfcc72ff
commit
f41a919452
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -26,4 +26,5 @@ skelatool64/*.zip*
|
|||
src/controls/controller-data.h
|
||||
|
||||
|
||||
log.txt
|
||||
log.txt
|
||||
log_images/
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue