mirror of
https://github.com/specht/champ.git
synced 2025-01-03 04:34:17 +00:00
update
This commit is contained in:
parent
91f51c61d5
commit
cd07c0120a
5
champ.c
5
champ.c
@ -1162,12 +1162,15 @@ int main(int argc, char** argv)
|
||||
}
|
||||
fprintf(stderr, "Total cycles: %d\n", cpu.total_cycles);
|
||||
fprintf(stderr, "Cycles per frame: %d\n", (uint64_t)((double)frame_cycle_count / frame_count));
|
||||
printf("%12s %6s %8s %8s %4s %s\n", "Total CC", "% CC", "Calls", "CC/Call", "Addr", "Label");
|
||||
for (uint32_t i = 0; i < 0x10000; i++)
|
||||
{
|
||||
if (cycles_per_function[i] > 0)
|
||||
{
|
||||
printf("%12d %5.2f%% %8d %04x", cycles_per_function[i],
|
||||
printf("%12d %5.2f%% %8d %8d %04x",
|
||||
cycles_per_function[i],
|
||||
cycles_per_function[i] * 100.0 / cpu.total_cycles,
|
||||
calls_per_function[i],
|
||||
cycles_per_function[i] / calls_per_function[i],
|
||||
i);
|
||||
if (label_for_address[i] >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user